Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the possibility of a "Clear" button? #17

Closed
christian-ruud opened this issue Apr 27, 2020 · 2 comments
Closed

Include the possibility of a "Clear" button? #17

christian-ruud opened this issue Apr 27, 2020 · 2 comments

Comments

@christian-ruud
Copy link

Awsome component.
It would be great if you could include the option of having a "Clear"-button along with "Apply" and "Cancel" that will set the selected range back to NULL.

@leninator
Copy link

leninator commented Apr 28, 2020

+1 for this.

One thing I thought would be to use the type="search" rather than type="text". You then get the nice little clear button in the textbox by default. However this does cause the popup for the date picker and does not reset any bound values.

@jdtcn
Copy link
Owner

jdtcn commented May 4, 2020

Hello, @christian-ruud!

I've added ButtonsTemplate property in 2.4.0 version, so you can customize picker buttons. See example for your scenario with clear button in readme file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants