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