Configuration
Este conteúdo não está disponível em sua língua ainda.
Use name and value for a standalone input, or model and attribute for an ActiveForm field.
optionssets input HTML attributes.disabledandreadonlyset those attributes when the input options leave them unspecified.pluginOptionsconfigures the bundled plugin, includingshowSeconds,showMeridian,minuteStep,secondStep,defaultTime,template,upArrowStyleanddownArrowStyle. Passfalseto render a plain text input with its original name.pluginEventsmaps jQuery event names to JavaScript handlers. The same configuration is available to cloned inputs through thedata-krajee-timepickeroption reference.containerOptionscontains wrapper attributes.sizesets a Bootstrap size such assmorlg.addonsupplies trusted HTML orfalseto omit the opener.addonOptions['buttonOptions']can set a custom accessible name and button attributes. UseaddonOptions['asButton'] = truefor Bootstrap button classes.pjaxContainerIdidentifies the Yii PJAX container for reinitialization after replacement.
The dropdown is the default popup. Set template to false for an inline input with keyboard adjustments or to
'modal' for a native dialog. modalBackdrop: true displays its backdrop. Customize labels within pluginOptions to
translate the title, unit names, arrow labels and close button. Use the opener’s aria-label to override its Yii
application translation.
Click a unit or use the left and right arrows to select a unit in the text field. Up and down step the selected unit. Tab and Shift+Tab navigate the selected units and continue through the form at either end. Use the opener button or F4 to open the popup and Escape to close it.
The asset manager can replace the bundle’s CSS and JS. Set its bsDependencyEnabled to false if the application
registers its own Bootstrap styles.