class InlineRepeater implements CanHaveSubfields, CanRenderForBlocks (View source)

Traits

Properties

bool $renderForBlocks from  RenderForBlocks

Methods

renderForBlocks(bool $renderForBlocks = true)

No description

bool
forBlocks()

No description

__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

triggerText(string $trigger)

No description

selectTriggerText(string $selectTrigger)

No description

static InlineRepeater
make()

No description

label(string $label)

Set the label of the repeater.

disableCreate(bool $disableCreate = true)

Only to be used when you are referring to other models. Not for json repeaters.

relation(string $relation)

The name of the module to use for selecting existing records. Not for json repeaters.

allowBrowser(bool $allowBrowse = true)

No description

name(string $name)

Set the name of the repeater.

fields(array $fields)

Set the form fields of the repeater.

max(int $max)

No description

View
renderForm()

No description

string
getRenderName()

No description

asBlock()

No description

void
register()

Not to be called manually. This will register the dynamic repeater.

View
render()

No description

void
registerDynamicRepeaters()

No description

Details

RenderForBlocks renderForBlocks(bool $renderForBlocks = true)

No description

Parameters

bool $renderForBlocks

Return Value

RenderForBlocks

bool forBlocks()

No description

Return Value

bool

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

Parameters

string|null $name
string|null $trigger
string|null $selectTrigger
Collection|null $fields
string|null $label
bool $allowCreate
string|null $relation
bool|null $allowBrowse
array|null $browser
int|null $max

InlineRepeater triggerText(string $trigger)

No description

Parameters

string $trigger

Return Value

InlineRepeater

InlineRepeater selectTriggerText(string $selectTrigger)

No description

Parameters

string $selectTrigger

Return Value

InlineRepeater

static InlineRepeater make()

No description

Return Value

InlineRepeater

InlineRepeater label(string $label)

Set the label of the repeater.

Parameters

string $label

Return Value

InlineRepeater

InlineRepeater disableCreate(bool $disableCreate = true)

Only to be used when you are referring to other models. Not for json repeaters.

Parameters

bool $disableCreate

Return Value

InlineRepeater

InlineRepeater relation(string $relation)

The name of the module to use for selecting existing records. Not for json repeaters.

Parameters

string $relation

Return Value

InlineRepeater

InlineRepeater allowBrowser(bool $allowBrowse = true)

No description

Parameters

bool $allowBrowse

Return Value

InlineRepeater

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.

Parameters

string $name

Return Value

InlineRepeater

InlineRepeater fields(array $fields)

Set the form fields of the repeater.

Parameters

array $fields

Return Value

InlineRepeater

InlineRepeater max(int $max)

No description

Parameters

int $max

Return Value

InlineRepeater

View renderForm()

No description

Return Value

View

string getRenderName()

No description

Return Value

string

Block asBlock()

No description

Return Value

Block

void register()

Not to be called manually. This will register the dynamic repeater.

Return Value

void

View render()

No description

Return Value

View

void registerDynamicRepeaters()

No description

Return Value

void