All the jQuery UI Time Picker options can be used.
Parameters: |
|
---|---|
Returns: | The <input> tag with JavaScript to initialise it |
Displays a time picker in a standalone manner.
Adding a time picker in a CRUD form configuration:
<?php
return array(
'label' => '',
'renderer' => 'Nos\Renderer_Time_Picker',
'renderer_options' => array(
// jQuery UI Time Picker options
),
);
Displaying a time picker:
<?php
echo Nos\Renderer_Time_Picker::renderer(array(
'name' => 'my_time',
'class' => 'some_class',
'value' => '17:48',
'renderer_options' => array(
// jQuery UI Time Picker options
),
));