| @@ 265-273 (lines=9) @@ | ||
| 262 | return $this->addFieldType($name, 'color_picker', $args); |
|
| 263 | } |
|
| 264 | ||
| 265 | public function addTab($label, $args = []) |
|
| 266 | { |
|
| 267 | $name = $this->generateName($label).'_tab'; |
|
| 268 | $args = array_merge([ |
|
| 269 | 'label' => $label, |
|
| 270 | ], $args); |
|
| 271 | ||
| 272 | return $this->addFieldType($name, 'tab', $args); |
|
| 273 | } |
|
| 274 | ||
| 275 | public function endpoint($value = 1) |
|
| 276 | { |
|
| @@ 280-289 (lines=10) @@ | ||
| 277 | return $this->setConfig('endpoint', $value); |
|
| 278 | } |
|
| 279 | ||
| 280 | public function addMessage($label, $message, $args = []) |
|
| 281 | { |
|
| 282 | $name = $this->generateName($label).'_message'; |
|
| 283 | $args = array_merge([ |
|
| 284 | 'label' => $label, |
|
| 285 | 'message' => $message, |
|
| 286 | ], $args); |
|
| 287 | ||
| 288 | return $this->addFieldType($name, 'message', $args); |
|
| 289 | } |
|
| 290 | ||
| 291 | public function addRepeater($name, $args = []) |
|
| 292 | { |
|