You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bootstrap-...@googlegroups.com
I dont want the datepicker to pop up when the field receives focus, eg. by tabbing or setting focus with javascript. I only want it to pop up when it is clicked (or whe just the calendar icon is clicked)
Is there a way to do this?
Andrew Rowls
unread,
Dec 20, 2013, 5:40:06 PM12/20/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to George Richardson, bootstrap-...@googlegroups.com
Currently, no, there's no way to limit what triggers the picker to show.
Alternatively, you could simply attach the datepicker to the add-on and work with the javascript events to populate the input. It won't be a perfect solution, but it may be good enough.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bootstrap-...@googlegroups.com, George Richardson
Because I really needed this feature, I implemented it in the latest stable version. I just added a new parameter called showOnFocus und set it in the default object to true.
In _buildEvents I found the following line in the component block:
focus: $.proxy(this.show, this),
I changed it to:
focus: $.proxy(function(e){
if (this.o.showOnFocus) /*TODO:konfiguration einbauen*/
this.show();
}, this),
Now I had only to make a markup as a component and set the showOnFocus to false and the calendar will only appear if I click on the button.