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