@@ 106-115 (lines=10) @@ | ||
103 | * @return $this |
|
104 | * @see https://datatables.net/reference/option/buttons.buttons.init |
|
105 | */ |
|
106 | public function init($value) |
|
107 | { |
|
108 | if ($this->isFunction($value)) { |
|
109 | $this->attributes['init'] = $value; |
|
110 | } else { |
|
111 | $this->attributes['init'] = "function(dt, node, config) { $value }"; |
|
112 | } |
|
113 | ||
114 | return $this; |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * Set key option value. |
|
@@ 247-256 (lines=10) @@ | ||
244 | * @return $this |
|
245 | * @see https://datatables.net/reference/option/buttons.buttons.destroy |
|
246 | */ |
|
247 | public function destroy($value) |
|
248 | { |
|
249 | if ($this->isFunction($value)) { |
|
250 | $this->attributes['destroy'] = $value; |
|
251 | } else { |
|
252 | $this->attributes['destroy'] = "function(dt, node, config) { $value }"; |
|
253 | } |
|
254 | ||
255 | return $this; |
|
256 | } |
|
257 | ||
258 | /** |
|
259 | * Set customize option value. |