Change minViewMode programmatically.

429 views
Skip to first unread message

Prashant

unread,
Feb 24, 2014, 11:03:07 AM2/24/14
to bootstrap-...@googlegroups.com
I'm trying to implement two datepickers on a page and need to change their minViewMode between month and day through radio buttons. How can I change it programmatically?  

regards,
Prashant

Andrew Rowls

unread,
Feb 24, 2014, 6:05:19 PM2/24/14
to Prashant, bootstrap-...@googlegroups.com
There's currently no way to change the minViewMode, through the public api.

You can use the private API, though:

.data('datepicker')._process_options({minViewMode: 2})
> --
> You received this message because you are subscribed to the Google Groups "bootstrap-datepicker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bootstrap-datepi...@googlegroups.com.
> To post to this group, send email to bootstrap-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bootstrap-datepicker/0e0aefd6-63b8-449e-b03a-ddcd40e13e1e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages