1 | <?php |
||
28 | class MultiSelect extends InputWidget |
||
29 | { |
||
30 | /** |
||
31 | * @var array data for generating the list options (value=>display) |
||
32 | */ |
||
33 | public $data = []; |
||
34 | /** |
||
35 | * @var array the options for the Bootstrap Multiselect JS plugin. |
||
36 | * Please refer to the Bootstrap Multiselect plugin Web page for possible options. |
||
37 | * @see http://davidstutz.github.io/bootstrap-multiselect/#options |
||
38 | */ |
||
39 | public $clientOptions = []; |
||
40 | |||
41 | /** |
||
42 | * Initializes the widget. |
||
43 | * @throws InvalidConfigException |
||
44 | */ |
||
45 | public function init() |
||
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | * @throws InvalidParamException |
||
56 | */ |
||
57 | public function run() |
||
66 | |||
67 | /** |
||
68 | * Registers MultiSelect Bootstrap plugin and the related events |
||
69 | * @throws InvalidParamException |
||
70 | */ |
||
71 | protected function registerPlugin() |
||
86 | } |
||
87 |