1 | <?php |
||
8 | class Select2 extends Select |
||
9 | { |
||
10 | protected $type = 'select2'; |
||
11 | |||
12 | /** |
||
13 | * @param bool $state |
||
14 | * @return $this |
||
15 | */ |
||
16 | public function allowClear($state = true) |
||
22 | |||
23 | /** |
||
24 | * @param string $text |
||
25 | * @param string|null $id |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function placeholder($text = '', $id = null) |
||
37 | |||
38 | /** |
||
39 | * Set select2 ajax option. |
||
40 | * |
||
41 | * @param mixed $value |
||
42 | * @return $this |
||
43 | */ |
||
44 | public function ajax($value) |
||
50 | |||
51 | /** |
||
52 | * Set select2 ajaxDelay option. |
||
53 | * |
||
54 | * @param mixed $value |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function ajaxDelay($value = 250) |
||
63 | |||
64 | /** |
||
65 | * Set select2 ajax data option. |
||
66 | * |
||
67 | * @param mixed $data |
||
68 | * @return $this |
||
69 | */ |
||
70 | public function ajaxData($data) |
||
86 | |||
87 | /** |
||
88 | * Set select2 ajax processResults option to process a paginated results. |
||
89 | * |
||
90 | * @param string $display |
||
91 | * @param string $id |
||
92 | * @return $this |
||
93 | */ |
||
94 | public function processPaginatedResults($display = 'text', $id = 'id') |
||
104 | |||
105 | /** |
||
106 | * Set select2 ajax processResults option. |
||
107 | * |
||
108 | * @param string $value |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function processResults($value) |
||
117 | } |
||
118 |