@@ 44-53 (lines=10) @@ | ||
41 | * @param mixed $value |
|
42 | * @return $this |
|
43 | */ |
|
44 | public function ajax($value) |
|
45 | { |
|
46 | if (is_array($value)) { |
|
47 | $this->attributes['opts']['ajax'] = $value; |
|
48 | } else { |
|
49 | $this->attributes['opts']['ajax']['url'] = $value; |
|
50 | } |
|
51 | ||
52 | return $this; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Set select2 ajax url option. |
@@ 26-35 (lines=10) @@ | ||
23 | * @return $this |
|
24 | * @see https://datatables.net/reference/option/language |
|
25 | */ |
|
26 | public function language($value) |
|
27 | { |
|
28 | if (is_array($value)) { |
|
29 | $this->attributes['language'] = $value; |
|
30 | } else { |
|
31 | $this->attributes['language']['url'] = $value; |
|
32 | } |
|
33 | ||
34 | return $this; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Set language decimal option value. |