Daemonite / Daemonite/material

Update or destroy instance of date picker

Open
#242 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
CSS
Stars
3.2k
Forks
700
PR merge metrics
No merged PRs in 30d

Description

It seems that once you've created an instance of a datepicker you cannot update or destroy it.

For instance: I need to be able to update it by changing the `min` or `max` selectable date. This seems to be impossible right now.

Maybe, [after the plugin is updated](https://github.com/Daemonite/material/issues/243) add the same support that the [base plugin](https://amsul.ca/pickadate.js/) provides. This way all properties can be set like so:

```
// Using arrays formatted as [YEAR,MONTH,DATE].
picker.set('max', [2015,3,20])

// Using JavaScript Date objects.
picker.set('min', new Date(2015,7,14))

// Using formatted strings.
picker.set('max', '20 April, 2016'))

// Using integers as days relative to today.
picker.set('max', 4)

// Using `true` for “today”.
picker.set('max', true)

// Using `false` to remove.
picker.set('max', false)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.