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

datetimepicker4vue

v1.0.4

Published

datetimepicker for vue.js

Downloads

2

Readme

vue-bootstrapdatetimepicker

this package is an open source for any one who wants to use bootstrap datetimepicker for vue. this components required datetimepicker from project. if you are going to use this components on your project, you nedd bootstrap, jquery. the offcial documents online open this link.

online demo

if you want to see online demo

webpack configurations

this project required datetimepicker's source code already. before you are going to use this project, check your webpack configurations like below.

    ///webpack plugins
    plugins: [
    new webpack.optimize.ModuleConcatenationPlugin(),
    new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /zh-cn/), //if you are using I18N locales, do not add this
    new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
    new webpack.ProvidePlugin({
        $               : 'jquery',
        jQuery          : 'jquery',
        'window.jQuery' : 'jquery',
        Popper          : ['popper.js', 'default'],
        Alert           : 'exports-loader?Alert!bootstrap/js/dist/alert',
        Button          : 'exports-loader?Button!bootstrap/js/dist/button',
        Carousel        : 'exports-loader?Carousel!bootstrap/js/dist/carousel',
        Collapse        : 'exports-loader?Collapse!bootstrap/js/dist/collapse',
        Dropdown        : 'exports-loader?Dropdown!bootstrap/js/dist/dropdown',
        Modal           : 'exports-loader?Modal!bootstrap/js/dist/modal',
        Popover         : 'exports-loader?Popover!bootstrap/js/dist/popover',
        Scrollspy       : 'exports-loader?Scrollspy!bootstrap/js/dist/scrollspy',
        Tab             : 'exports-loader?Tab!bootstrap/js/dist/tab',
        Tooltip         : "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
        Util            : 'exports-loader?Util!bootstrap/js/dist/util',
        moment: 'moment',
    })
  ]

notices

this project required jquery, bootstrap(about:^3.3.7), moment.js

install

if you are using npm:

    npm install --save datetimepicker4vue

or yarn

    yarn add datetimepicker4vue

quick start

to use this component would be simple! import component

    import 'bootstrap/dist/css/bootstrap.css'; //important
    import 'datetimepicker4vue/dist/datetimepicker4vue.min.css';
    import TimePicker from 'datetimepicker4vue';

    new Vue({
        data(){
            return{
                date: '',
                options: {
                    language:  'zh-CN',
                    useCurrent: true,
                    autoclose: true
                }
            }
        },
        components: {
            TimePicker
        }
    }).$mount('#app');;

bind your element

    <div id='app'>
        <time-picker v-model="date" :options="options"></time-picker>
    </div>

method usage

to use this components, you can not use some original method from datetimepicker. hey!! do not worry, you can use v-bind for this methods!.

    getDate,getUTCDate ....
    v-model='date'
    //get date method use v-model, if you need different format style, do it your self.
    by update binding options, you can update components date immediately.

    setDatesDisabled
    v-bind:datesDisabled:='datesDisabled'

    setDaysOfWeekDisabled
    v-bind:daysOfWeekDisabled:='daysOfWeekDisabled'

    setDaysOfWeekHighlighted
    v-bind:daysOfWeekHighlighted:='daysOfWeekHighlighted'

    show,hide,destroy
    use: v-if, v-show

    update
    v-bind:update='update'