nazar-pc / PickMeUp

Really simple, powerful, customizable and lightweight standalone datepicker
BSD Zero Clause License
615 stars 191 forks source link

Not possible to remove selection from current date #157

Closed trasktresk closed 7 years ago

trasktresk commented 7 years ago
pickmeup('.ev-sidebar_addit-box-calendar', {
        flat: true,
        locale: 'ru',
        format: 'Y-m-d',
        render: function(date) {
            if(date.getDate() === new Date().getDate()) {
                return {selected: false};
            }
        }
    });

I tried to remove ".pmu-selected" class by jQuery in callbacks. No effect.

nazar-pc commented 7 years ago

Can you describe more precisely what do you want to achieve? Preferably in 3 parts:

This way it would be easier to help you.