InlineRepeater
class InlineRepeater implements CanHaveSubfields, CanRenderForBlocks (View source)
Traits
Properties
bool | $renderForBlocks | from RenderForBlocks |
Methods
No description
No description
No description
No description
Set the label of the repeater.
Only to be used when you are referring to other models. Not for json repeaters.
The name of the module to use for selecting existing records. Not for json repeaters.
No description
Set the name of the repeater.
Set the form fields of the repeater.
No description
No description
No description
Not to be called manually. This will register the dynamic repeater.
No description
No description
Details
RenderForBlocks
renderForBlocks(bool $renderForBlocks = true)
No description
bool
forBlocks()
No description
protected
__construct(string|null $name = null, string|null $trigger = null, string|null $selectTrigger = null, Collection|null $fields = null, string|null $label = null, bool $allowCreate = true, string|null $relation = null, bool|null $allowBrowse = false, array|null $browser = null, int|null $max = null)
No description
InlineRepeater
triggerText(string $trigger)
No description
InlineRepeater
selectTriggerText(string $selectTrigger)
No description
static InlineRepeater
make()
No description
InlineRepeater
label(string $label)
Set the label of the repeater.
InlineRepeater
disableCreate(bool $disableCreate = true)
Only to be used when you are referring to other models. Not for json repeaters.
InlineRepeater
relation(string $relation)
The name of the module to use for selecting existing records. Not for json repeaters.
InlineRepeater
allowBrowser(bool $allowBrowse = true)
No description
InlineRepeater
name(string $name)
Set the name of the repeater.
NOTE: You cannot have the same repeater twice in a form or page. NOTE: If you have a repeater with a this name already, that one will be used instead.
InlineRepeater
fields(array $fields)
Set the form fields of the repeater.
InlineRepeater
max(int $max)
No description
View
renderForm()
No description
string
getRenderName()
No description
Block
asBlock()
No description
void
register()
Not to be called manually. This will register the dynamic repeater.
View
render()
No description
void
registerDynamicRepeaters()
No description