npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuetify-time-range-picker

v1.0.5

Published

A time range picker, made so users can easily pick a one day time interval.

Downloads

82

Readme

vuetify-time-range-picker

A time range picker based on Vuetify, made so users can easily pick a one day time interval.

Compatible with Vue 2 and Vuetify 2. If you need a Vue 3 and Vuetify 3 compatible version: check the upgraded version.

Demo

Installation

NPM

npm i vuetify-time-range-picker

YARN

yarn add vuetify-time-range-picker

Usage

Dependencies: Vue and Vuetify

JavaScript

// main.js
import Vue from 'vue';
import vuetify from '@/plugins/vuetify'; // path to vuetify export

new Vue({
  vuetify,
}).$mount('#app');

// Component.vue
import TimeRangePicker from 'vuetify-time-range-picker';

export default {
  ...,
  components: {
    TimeRangePicker,
  },
};

HTML

<template>
  <v-app id="app">
    <time-range-picker
      v-model="range"
      full-width
      hide-details
      hide-selected
      outlined
      step="30"
    />
  </v-app>
</template>

Props

| Name | Type | Description | Default Value | | ------------- |:-------------:|:-------------:|:-------------:| | range | Object | An object used as v-model containing 'start' and 'end' | { start: '00:00', end: '23:59' } | | inputLabel | String | Input label text | 'Interval' | | wholeDayLabel | String | Whole day checkbox label text | 'Whole day' | | step |String, Number | Interval of minutes between available times | 15 | | outerIcon | String | Outer vuetify v-icon default slot | 'access_time' | | outerIconColor | String | Outer vuetify v-icon color prop | '' | | startAppendIcon | String | Start time append icon | '' | | endAppendIcon | String | End time append icon | '' | | startPrefix | String | Start time prefix text | '' | | endPrefix | String | End time prefix text | ''| | disabledTimes | String, Array | Disabled times for both inputs | [] | | innerDivCustomClass | String | Custom CSS classes to be added at input's wrapper | '' | | noInputSeparator | Boolean | Hides the separator between start and end input | false | | hideWholeDayCheckbox | Boolean | Hides whole day option | false | | hideOuterIcon | Boolean | Hides outer v-icon | false |

Besides you can also pass most of the v-select props. The enabled ones are:

error-count error-messages full-width hide-details hint persistent-hint messages success-messages background-color color dark dense disable-lookup disabled eager error filled flat height hide-selected item-color light menu-props outlined rounded shaped solo solo-inverted success

Slots

| Name | Description | | ------------- |:-------------:| | append | Replaces the default v-icon outside the input |

Events

| Name | Description | | ------------- |:-------------:| | update | Updates the v-model value | | mouseover | Emitted at input mouseover | | mouseleave | Emitted at input mouseleave | | focus | Emitted at input focus | | blur | Emitted at input blur |

License

MIT