trait CanOpenModal (View source)

Properties

protected StaticAction> $cachedExtraModalFooterActions
protected StaticAction[] $extraModalFooterActions
protected bool|Closure|null $isModalFooterSticky
protected bool|Closure|null $isModalHeaderSticky
protected StaticAction> $cachedModalActions
protected StaticAction[] $modalActions
protected bool|Closure $isModalSlideOver
protected Alignment|string|Closure|null $modalAlignment
protected StaticAction> $cachedModalFooterActions
protected StaticAction[] $modalFooterActions
protected Alignment|string|Closure|null $modalFooterActionsAlignment
protected StaticAction|bool|Closure|null $modalCancelAction
protected string|Closure|null $modalCancelActionLabel
protected StaticAction|bool|Closure|null $modalSubmitAction
protected string|Closure|null $modalSubmitActionLabel
protected Htmlable|Closure|null $modalContent
protected Htmlable|Closure|null $modalContentFooter
protected Htmlable|Closure|null $modalHeading
protected Htmlable|Closure|null $modalDescription
protected MaxWidth|string|Closure|null $modalWidth
protected bool|Closure|null $hasModal
protected bool|Closure|null $isModalHidden
protected bool|Closure|null $hasModalCloseButton
protected bool|Closure|null $isModalClosedByClickingAway
protected bool|Closure|null $isModalClosedByEscaping
protected bool|Closure|null $isModalAutofocused
protected string|Closure|null $modalIcon
protected string $modalIconColor

Methods

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

No description

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

No description

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

No description

modalAlignment(Alignment|string|Closure|null $alignment = null)

No description

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

No description

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

No description

modalIcon(string|Closure|null $icon = null)

No description

modalIconColor(string|array|Closure|null $color = null)

No description

slideOver(bool|Closure $condition = true)

No description

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

No description

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

No description

modalFooterActionsAlignment(Alignment|string|Closure|null $alignment = null)

No description

extraModalActions(array|Closure $actions) deprecated

No description

extraModalFooterActions(array|Closure $actions)

No description

registerModalActions(array $actions)

No description

modalSubmitAction(StaticAction|bool|Closure|null $action = null)

No description

modalCancelAction(StaticAction|bool|Closure|null $action = null)

No description

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

No description

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

No description

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

No description

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

No description

modalFooter(Htmlable|Closure|null $footer = null) deprecated

No description

modalContentFooter(Htmlable|Closure|null $footer = null)

No description

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

No description

modalDescription(Htmlable|Closure|null $description = null)

No description

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

No description

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

No description

string|null
modal(bool|Closure|null $condition = true)

No description

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

No description

array
getModalFooterActions()

No description

Alignment|null
array
getModalActions()

No description

StaticAction|null
getModalAction(string $name)

No description

MountableAction|null
getMountableModalAction(string $name)

No description

prepareModalAction(StaticAction $action)

No description

array
getVisibleModalFooterActions()

No description

StaticAction|null
getModalSubmitAction()

No description

StaticAction|null
getModalCancelAction()

No description

array
getExtraModalFooterActions()

No description

Alignment|string
getModalAlignment()

No description

string
getModalSubmitActionLabel()

No description

string
getModalCancelActionLabel()

No description

Htmlable|null
getModalContent()

No description

Htmlable|null
getModalContentFooter()

No description

bool
hasModalContent()

No description

bool
hasModalContentFooter()

No description

Htmlable|null
getCustomModalHeading()

No description

Htmlable
getModalHeading()

No description

bool
hasCustomModalHeading()

No description

Htmlable|null
getModalDescription()

No description

bool
hasModalDescription()

No description

MaxWidth|string
getModalWidth()

No description

bool
isModalFooterSticky()

No description

bool
isModalHeaderSticky()

No description

bool
isModalSlideOver()

No description

bool
shouldOpenModal(Closure|null $checkForFormUsing = null)

No description

bool
hasModalCloseButton()

No description

bool
isModalClosedByClickingAway()

No description

bool
isModalClosedByEscaping()

No description

bool
isModalAutofocused()

No description

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

No description

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

No description

makeModalAction(string $name)

No description

string|null
getModalIcon()

No description

string|array|null
getModalIconColor()

No description

stickyModalFooter(bool|Closure $condition = true)

No description

stickyModalHeader(bool|Closure $condition = true)

No description

Details

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

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

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

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

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

deprecated Use `modalAlignment(Alignment::Center)` instead.

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

CanOpenModal modalAlignment(Alignment|string|Closure|null $alignment = null)

No description

Parameters

Alignment|string|Closure|null $alignment

Return Value

CanOpenModal

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

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

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

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

CanOpenModal modalIcon(string|Closure|null $icon = null)

No description

Parameters

string|Closure|null $icon

Return Value

CanOpenModal

CanOpenModal modalIconColor(string|array|Closure|null $color = null)

No description

Parameters

string|array|Closure|null $color

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) deprecated

deprecated Use `modalFooterActions()` instead.

No description

Parameters

array|Closure|null $actions

Return Value

CanOpenModal

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

No description

Parameters

array|Closure|null $actions

Return Value

CanOpenModal

CanOpenModal modalFooterActionsAlignment(Alignment|string|Closure|null $alignment = null)

No description

Parameters

Alignment|string|Closure|null $alignment

Return Value

CanOpenModal

CanOpenModal extraModalActions(array|Closure $actions) deprecated

deprecated Use `extraModalFooterActions()` instead.

No description

Parameters

array|Closure $actions

Return Value

CanOpenModal

CanOpenModal extraModalFooterActions(array|Closure $actions)

No description

Parameters

array|Closure $actions

Return Value

CanOpenModal

CanOpenModal registerModalActions(array $actions)

No description

Parameters

array $actions

Return Value

CanOpenModal

CanOpenModal modalSubmitAction(StaticAction|bool|Closure|null $action = null)

No description

Parameters

StaticAction|bool|Closure|null $action

Return Value

CanOpenModal

CanOpenModal modalCancelAction(StaticAction|bool|Closure|null $action = null)

No description

Parameters

StaticAction|bool|Closure|null $action

Return Value

CanOpenModal

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

No description

Parameters

string|Closure|null $label

Return Value

CanOpenModal

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

No description

Parameters

string|Closure|null $label

Return Value

CanOpenModal

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

deprecated Use `modalSubmitActionLabel()` instead.

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 $footer = null) deprecated

deprecated Use `modalContentFooter()` instead.

No description

Parameters

Htmlable|Closure|null $footer

Return Value

CanOpenModal

CanOpenModal modalContentFooter(Htmlable|Closure|null $footer = null)

No description

Parameters

Htmlable|Closure|null $footer

Return Value

CanOpenModal

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

No description

Parameters

Htmlable|Closure|null $heading

Return Value

CanOpenModal

CanOpenModal modalDescription(Htmlable|Closure|null $description = null)

No description

Parameters

Htmlable|Closure|null $description

Return Value

CanOpenModal

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

deprecated Use `modalDescription()` instead.

No description

Parameters

Htmlable|Closure|null $subheading

Return Value

CanOpenModal

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

No description

Parameters

MaxWidth|string|Closure|null $width

Return Value

CanOpenModal

string|null getLivewireCallMountedActionName()

No description

Return Value

string|null

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

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

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

No description

Parameters

bool|Closure|null $condition

Return Value

CanOpenModal

array getModalFooterActions()

No description

Return Value

array

Alignment|null getModalFooterActionsAlignment()

No description

Return Value

Alignment|null

array getModalActions()

No description

Return Value

array

StaticAction|null getModalAction(string $name)

No description

Parameters

string $name

Return Value

StaticAction|null

MountableAction|null getMountableModalAction(string $name)

No description

Parameters

string $name

Return Value

MountableAction|null

StaticAction prepareModalAction(StaticAction $action)

No description

Parameters

StaticAction $action

Return Value

StaticAction

array getVisibleModalFooterActions()

No description

Return Value

array

StaticAction|null getModalSubmitAction()

No description

Return Value

StaticAction|null

StaticAction|null getModalCancelAction()

No description

Return Value

StaticAction|null

array getExtraModalFooterActions()

No description

Return Value

array

Alignment|string getModalAlignment()

No description

Return Value

Alignment|string

string getModalSubmitActionLabel()

No description

Return Value

string

string getModalCancelActionLabel()

No description

Return Value

string

Htmlable|null getModalContent()

No description

Return Value

Htmlable|null

Htmlable|null getModalContentFooter()

No description

Return Value

Htmlable|null

bool hasModalContent()

No description

Return Value

bool

bool hasModalContentFooter()

No description

Return Value

bool

Htmlable|null getCustomModalHeading()

No description

Return Value

Htmlable|null

Htmlable getModalHeading()

No description

Return Value

Htmlable

bool hasCustomModalHeading()

No description

Return Value

bool

Htmlable|null getModalDescription()

No description

Return Value

Htmlable|null

bool hasModalDescription()

No description

Return Value

bool

MaxWidth|string getModalWidth()

No description

Return Value

MaxWidth|string

bool isModalFooterSticky()

No description

Return Value

bool

bool isModalHeaderSticky()

No description

Return Value

bool

bool isModalSlideOver()

No description

Return Value

bool

bool shouldOpenModal(Closure|null $checkForFormUsing = null)

No description

Parameters

Closure|null $checkForFormUsing

Return Value

bool

bool hasModalCloseButton()

No description

Return Value

bool

bool isModalClosedByClickingAway()

No description

Return Value

bool

bool isModalClosedByEscaping()

No description

Return Value

bool

bool isModalAutofocused()

No description

Return Value

bool

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

deprecated Use `makeModalSubmitAction()` instead.

No description

Parameters

string $name
array|null $arguments

Return Value

StaticAction

StaticAction makeModalSubmitAction(string $name, array|null $arguments = null)

No description

Parameters

string $name
array|null $arguments

Return Value

StaticAction

StaticAction makeModalAction(string $name)

No description

Parameters

string $name

Return Value

StaticAction

string|null getModalIcon()

No description

Return Value

string|null

string|array|null getModalIconColor()

No description

Return Value

string|array|null

| array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | null

CanOpenModal stickyModalFooter(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanOpenModal

CanOpenModal stickyModalHeader(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanOpenModal