trait CanBeHidden (View source)

Properties

protected bool|Closure $isHidden
protected bool|Closure $isVisible

Methods

hidden(bool|Closure $condition = true)

No description

hiddenOn(string|array $contexts)

No description

when(bool|Closure $condition = true)

No description

whenTruthy(string|array $paths)

No description

whenFalsy(string|array $paths)

No description

visible(bool|Closure $condition = true)

No description

visibleOn(string|array $contexts)

No description

bool
isHidden()

No description

Details

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden hiddenOn(string|array $contexts)

No description

Parameters

string|array $contexts

Return Value

CanBeHidden

CanBeHidden hiddenWhenAllChildComponentsHidden()

No description

Return Value

CanBeHidden

CanBeHidden when(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden whenTruthy(string|array $paths)

No description

Parameters

string|array $paths

Return Value

CanBeHidden

CanBeHidden whenFalsy(string|array $paths)

No description

Parameters

string|array $paths

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visibleOn(string|array $contexts)

No description

Parameters

string|array $contexts

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool