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