trait HasForm (View source)

Properties

protected array<string,mixed> $formData
protected Component[] $form
protected bool|Closure $isFormDisabled
protected Closure|null $mutateFormDataUsing

Methods

disableForm(bool|Closure $condition = true) deprecated

No description

disabledForm(bool|Closure $condition = true)

No description

form(array|Closure|null $form)

No description

Form|null
getForm(Form $form)

No description

mutateFormDataUsing(Closure|null $callback)

No description

formData(array $data, bool $shouldMutate = true)

No description

resetFormData()

No description

array
getFormData()

No description

bool
isFormDisabled()

No description

Details

HasForm disableForm(bool|Closure $condition = true) deprecated

deprecated Use `disabledForm() instead.

No description

Parameters

bool|Closure $condition

Return Value

HasForm

HasForm disabledForm(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasForm

HasForm form(array|Closure|null $form)

No description

Parameters

array|Closure|null $form

Return Value

HasForm

Form|null getForm(Form $form)

No description

Parameters

Form $form

Return Value

Form|null

HasForm mutateFormDataUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasForm

HasForm formData(array $data, bool $shouldMutate = true)

No description

Parameters

array $data
bool $shouldMutate

Return Value

HasForm

HasForm resetFormData()

No description

Return Value

HasForm

array getFormData()

No description

Return Value

array

bool isFormDisabled()

No description

Return Value

bool