[Vtigercrm-developers] vtiger 6.1 Override defaultsTimePickerParams?
Prasad
prasad at vtiger.com
Thu Oct 9 18:15:04 GMT 2014
Alan,
Try this...
I assume you have defined javascript class for the view of your module (
example
<http://community.vtiger.com/help/vtigercrm/developers/extensions/examples/world-clock-v1.html#step-7-view-javascript>).
Once the page is ready, framework invokes registerEvents function to let
you further customize the page.
Get hold of the element and override the formatting.
jQuery('#ElementId').timepicker('option', {'step': 15});
Regards,
Prasad
*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* Facebook
<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* Blog
<https://blogs.vtiger.com/>* I* Wiki
<http://wiki.vtiger.com/index.php/Main_Page> *I *Forums
<https://discussions.vtiger.com>*I* Website <https://www.vtiger.com/>
On Thu, Oct 9, 2014 at 6:50 PM, Alan Lord <alanslists at gmail.com> wrote:
> For a specific custom module I want the timepicker widget to show the time
> in 15min increments.
>
> In resources/app.js I can do:
>
> var defaultsTimePickerParams = {
>> 'timeFormat' : timeFormat,
>> 'step' : '15',
>> 'className' : 'timePicker'
>> };
>>
>
> But this will affect all Time Picker elements.
>
> What's the right way to change this for my module?
>
> Thanks
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141009/b0498b69/attachment-0001.html>
More information about the vtigercrm-developers
mailing list