1 | <?php |
||
25 | class DateTimePicker extends InputWidget |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @var string the name of the jQuery plugin |
||
30 | */ |
||
31 | public $pluginName = 'datetimepicker'; |
||
32 | /** |
||
33 | * @var array default widget plugin options that user pluginOptions will be merged into |
||
34 | */ |
||
35 | public $defaultPluginOptions = ['format' => 'yyyy-mm-dd hh:ii:ss', 'todayBtn' => true, 'autoclose' => true, 'weekStart' => 1]; |
||
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-medium']; |
||
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() |
||
74 | |||
75 | /** |
||
76 | * Registers the needed client assets |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | public function registerAssets() |
||
94 | |||
95 | |||
96 | } |