@@ 435-443 (lines=9) @@ | ||
432 | * @param array $args field configuration |
|
433 | * @return $this |
|
434 | */ |
|
435 | public function addTab($label, $args = []) |
|
436 | { |
|
437 | $name = $this->generateName($label).'_tab'; |
|
438 | $args = array_merge([ |
|
439 | 'label' => $label, |
|
440 | ], $args); |
|
441 | ||
442 | return $this->addFieldType($name, 'tab', $args); |
|
443 | } |
|
444 | ||
445 | /** |
|
446 | * Configs the tab as an endpoint tab. New tabs will start on another row. |
|
@@ 462-471 (lines=10) @@ | ||
459 | * @param array $args field configuration |
|
460 | * @return $this |
|
461 | */ |
|
462 | public function addMessage($label, $message, $args = []) |
|
463 | { |
|
464 | $name = $this->generateName($label).'_message'; |
|
465 | $args = array_merge([ |
|
466 | 'label' => $label, |
|
467 | 'message' => $message, |
|
468 | ], $args); |
|
469 | ||
470 | return $this->addFieldType($name, 'message', $args); |
|
471 | } |
|
472 | ||
473 | /** |
|
474 | * Add a repeater field. Any fields added after will be added to the repeater |