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-tempus-dominus

v1.0.0

Published

Tempus Dominus DateTime Picker for Vuetify 3

Downloads

5

Readme

VuetifyTempusDominus

Introduction

VuetifyTempusDominus is a Vue 3 component that integrates Tempus Dominus DateTime Picker with Vuetify 3. Benefit from the rich set of features for time and date selection, all conforming to Vuetify's style guidelines.

Installation

npm install vuetify-tempus-dominus

Usage Guide

Importing the Component

import VuetifyTempusDominus from 'vuetify-tempus-dominus'

Basic Usage

<template>
  <VuetifyTempusDominus :options="yourOptions"></VuetifyTempusDominus>
</template>

Props

  • options (Object): Tempus Dominus options. Refer to the Tempus Dominus documentation.

Vuetify Attributes and Slots

The component supports all Vuetify v-text-field attributes and slots.

Events

  • picker:init: Emitted when the picker is initialized. The Tempus Dominus object is passed back to the parent.
  • picker:change: Emitted when the date or time changes.
  • The component captures all Tempus Dominus events and emits them for further handling. You can listen to these events in the parent component and they'll be prefixed with picker:. For example, Tempus Dominus's hide event can be listened to as picker:hide in the parent component

Examples

Basic Example

<template>
  <VuetifyTempusDominus :options="{ useCurrent: false }"></VuetifyTempusDominus>
</template>

With Vuetify attributes

<template>
  <VuetifyTempusDominus
    :options="{ debug: true, useCurrent: false }"
    label="Select Date"
    density="compact"
    outlined
  ></VuetifyTempusDominus>
</template>

Using Slots

<template>
  <VuetifyTempusDominus>
    <template v-slot:prepend>
      <v-icon>mdi-calendar</v-icon>
    </template>
    <template v-slot:append-inner></template>
  </VuetifyTempusDominus>
</template>

Accessing Tempus Dominus Object

Here's how you can access the Tempus Dominus object for further manipulation:

<template>
  <VuetifyTempusDominus
    @picker:init="handlePickerInit"
  ></VuetifyTempusDominus>
</template>

<script>
export default {
  methods: {
    handlePickerInit(picker) {
      // Now you can use 'picker' to manipulate the Tempus Dominus instance
      picker.show()
    }
  }
}
</script>

Example of Capturing Events

Here's how you can capture and handle the Tempus Dominus hide event:

<template>
  <VuetifyTempusDominus
    @picker:hide="handlePickerHide"
  ></VuetifyTempusDominus>
</template>

<script>
export default {
  methods: {
    handlePickerHide(date) {
      console.log('Picker hidden, selected date is:', date);
    }
  }
}
</script>