trait CanOpenModal (View source)

Properties

protected array|Closure $extraModalActions
protected bool|Closure|null $isModalCentered
protected bool|Closure $isModalSlideOver
protected array|Closure|null $modalActions
protected Action|Closure|null $modalCancelAction
protected Action|Closure|null $modalSubmitAction
protected string|Closure|null $modalButtonLabel
protected Htmlable|Closure|null $modalContent
protected Htmlable|Closure|null $modalFooter
protected Htmlable|Closure|null $modalHeading
protected Htmlable|Closure|null $modalSubheading
protected string|Closure|null $modalWidth
protected bool|Closure|null $isModalHidden
protected bool|Closure|null $isModalClosedByClickingAway

Methods

closeModalByClickingAway(bool|Closure|null $condition = true)

No description

centerModal(bool|Closure|null $condition = true)

No description

slideOver(bool|Closure $condition = true)

No description

modalActions(array|Closure|null $actions = null)

No description

extraModalActions(array|Closure $actions)

No description

modalSubmitAction(Action|Closure|null $action = null)

No description

modalCancelAction(Action|Closure|null $action = null)

No description

modalButton(string|Closure|null $label = null)

No description

modalContent(Htmlable|Closure|null $content = null)

No description

modalFooter(Htmlable|Closure|null $content = null)

No description

modalHeading(Htmlable|Closure|null $heading = null)

No description

modalSubheading(Htmlable|Closure|null $subheading = null)

No description

modalWidth(string|Closure|null $width = null)

No description

modalHidden(bool|Closure|null $condition = false)

No description

string
getLivewireCallActionName()

No description

array
getModalActions()

No description

array
filterHiddenModalActions(array $actions)

No description

getModalSubmitAction()

No description

getModalCancelAction()

No description

array
getExtraModalActions()

No description

string
getModalButtonLabel()

No description

Htmlable|null
getModalContent()

No description

Htmlable|null
getModalFooter()

No description

Htmlable
getModalHeading()

No description

Htmlable|null
getModalSubheading()

No description

string
getModalWidth()

No description

bool
isModalCentered()

No description

bool
isModalSlideOver()

No description

bool
isModalHidden()

No description

bool
isModalClosedByClickingAway()

No description

bool
shouldOpenModal()

No description

makeExtraModalAction(string $name, array|null $arguments = null)

No description

static string
getModalActionClass()

No description

static Action
makeModalAction(string $name)

No description

Details

CanOpenModal closeModalByClickingAway(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

CanOpenModal centerModal(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

CanOpenModal slideOver(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanOpenModal

CanOpenModal modalActions(array|Closure|null $actions = null)

No description

Parameters

array|Closure|null $actions

Return Value

CanOpenModal

CanOpenModal extraModalActions(array|Closure $actions)

No description

Parameters

array|Closure $actions

Return Value

CanOpenModal

CanOpenModal modalSubmitAction(Action|Closure|null $action = null)

No description

Parameters

Action|Closure|null $action

Return Value

CanOpenModal

CanOpenModal modalCancelAction(Action|Closure|null $action = null)

No description

Parameters

Action|Closure|null $action

Return Value

CanOpenModal

CanOpenModal modalButton(string|Closure|null $label = null)

No description

Parameters

string|Closure|null $label

Return Value

CanOpenModal

CanOpenModal modalContent(Htmlable|Closure|null $content = null)

No description

Parameters

Htmlable|Closure|null $content

Return Value

CanOpenModal

CanOpenModal modalFooter(Htmlable|Closure|null $content = null)

No description

Parameters

Htmlable|Closure|null $content

Return Value

CanOpenModal

CanOpenModal modalHeading(Htmlable|Closure|null $heading = null)

No description

Parameters

Htmlable|Closure|null $heading

Return Value

CanOpenModal

CanOpenModal modalSubheading(Htmlable|Closure|null $subheading = null)

No description

Parameters

Htmlable|Closure|null $subheading

Return Value

CanOpenModal

CanOpenModal modalWidth(string|Closure|null $width = null)

No description

Parameters

string|Closure|null $width

Return Value

CanOpenModal

CanOpenModal modalHidden(bool|Closure|null $condition = false)

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

abstract protected string getLivewireCallActionName()

No description

Return Value

string

array getModalActions()

No description

Return Value

array

protected array filterHiddenModalActions(array $actions)

No description

Parameters

array $actions

Return Value

array

Action getModalSubmitAction()

No description

Return Value

Action

Action getModalCancelAction()

No description

Return Value

Action

array getExtraModalActions()

No description

Return Value

array

string getModalButtonLabel()

No description

Return Value

string

Htmlable|null getModalContent()

No description

Return Value

Htmlable|null

Htmlable|null getModalFooter()

No description

Return Value

Htmlable|null

Htmlable getModalHeading()

No description

Return Value

Htmlable

Htmlable|null getModalSubheading()

No description

Return Value

Htmlable|null

string getModalWidth()

No description

Return Value

string

bool isModalCentered()

No description

Return Value

bool

bool isModalSlideOver()

No description

Return Value

bool

bool isModalHidden()

No description

Return Value

bool

bool isModalClosedByClickingAway()

No description

Return Value

bool

bool shouldOpenModal()

No description

Return Value

bool

Action makeExtraModalAction(string $name, array|null $arguments = null)

No description

Parameters

string $name
array|null $arguments

Return Value

Action

static protected string getModalActionClass()

No description

Return Value

string

static Action makeModalAction(string $name)

No description

Parameters

string $name

Return Value

Action