monster.ui.timepicker()#

Syntax#

monster.ui.timepicker(target[, options]);

Parameters#

target: jQuery object (mandatory)#

Input or select element on which the method will be applied.

options: Object (optional)#

Let you specify a map of options for the Timepicker. You can consult the full list here: https://github.com/jonthornton/jquery-timepicker#options

By default:

  • timeFormat: String (optional, default: is12hMode ? 'g:ia' : 'G:i')
  • lang: Object (optional, default: monster.apps.core.i18n.active().timepicker)

Description#

This helper will transform a field into a jQuery Timepicker element. It will automatically use the time format that the user has chosen in his Monster-UI Settings.

Edit this page here