1 | <?php |
||
18 | class StaticCombo extends Combo |
||
19 | { |
||
20 | public $name = 'default'; |
||
21 | |||
22 | public $type = 'default'; |
||
23 | |||
24 | public $data = []; |
||
25 | |||
26 | /** |
||
27 | * @var bool whether to add an empty option for the select. Works only when [[multiple]] is set to `false`. |
||
28 | * |
||
29 | * Info: The `select` HTML element selects the first option in the list, |
||
30 | * if there is no other option marked as `selected`. This property prevents |
||
31 | * this behaviour by adding option with empty value. |
||
32 | */ |
||
33 | public $prependEmptyOption = true; |
||
34 | |||
35 | public function getPluginOptions($options = []) |
||
42 | |||
43 | protected function getCurrentOptions() |
||
53 | } |
||
54 |