1 | <?php |
||
25 | class TimePicker extends InputWidget |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @var string the name of the jQuery plugin |
||
30 | */ |
||
31 | public $pluginName = 'timepicker'; |
||
32 | /** |
||
33 | * @var array default widget plugin options that user pluginOptions will be merged into |
||
34 | */ |
||
35 | public $defaultPluginOptions = ['autoclose' => true, 'showSeconds' => true, 'minuteStep' => 5, 'secondStep' => 5, 'showMeridian' => false]; |
||
36 | /** |
||
37 | * @var array the HTML attributes for the input tag. |
||
38 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
39 | */ |
||
40 | public $options = ['class' => 'form-control input-small']; |
||
41 | /** |
||
42 | * @var string element id to use when calling the datepicker |
||
43 | */ |
||
44 | public $elementId = null; |
||
45 | |||
46 | |||
47 | /** |
||
48 | * Renders the color picker widget |
||
49 | */ |
||
50 | protected function renderWidget() |
||
57 | |||
58 | /** |
||
59 | * Prepare the input fields for the input |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | protected function prepareInput() |
||
71 | |||
72 | /** |
||
73 | * Registers the needed client assets |
||
74 | * |
||
75 | * @return void |
||
76 | */ |
||
77 | public function registerAssets() |
||
91 | |||
92 | |||
93 | } |