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

Is there any way to close the datepicker? #283

Closed
marciomsm opened this issue May 29, 2017 · 2 comments
Closed

Is there any way to close the datepicker? #283

marciomsm opened this issue May 29, 2017 · 2 comments

Comments

@marciomsm
Copy link

@rubyboy is there any way to close the datepicker? How can I use callback events like onClose? Can I close datepicker calling some function or somenting like?

I am using a datepicker and when I select a date, I need to close and call a method.

Thanks.

@rubyboy
Copy link
Contributor

rubyboy commented Jun 17, 2017

Here's how you can do that:

<input materialize="pickadate" [materializeActions]="actions" type="text" />
this.actions.emit({action:"pickadate",params:["close"]});

@rubyboy rubyboy closed this as completed Jun 17, 2017
rubyboy added a commit that referenced this issue Jun 17, 2017
@marciomsm
Copy link
Author

@rubyboy thank you!

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

2 participants