trait CanBeCollapsed (View source)

Properties

protected bool|Closure $isCollapsed
protected bool|Closure|null $isCollapsible
protected bool|Closure $shouldPersistCollapsed

Methods

collapsed(bool|Closure $condition = true, bool $shouldMakeComponentCollapsible = true)

No description

bool
isCollapsed()

No description

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

No description

bool
isCollapsible()

No description

persistCollapsed(bool|Closure $condition = true)

No description

bool
shouldPersistCollapsed()

No description

Details

CanBeCollapsed collapsed(bool|Closure $condition = true, bool $shouldMakeComponentCollapsible = true)

No description

Parameters

bool|Closure $condition
bool $shouldMakeComponentCollapsible

Return Value

CanBeCollapsed

bool isCollapsed()

No description

Return Value

bool

CanBeCollapsed collapsible(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

CanBeCollapsed

bool isCollapsible()

No description

Return Value

bool

CanBeCollapsed persistCollapsed(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeCollapsed

bool shouldPersistCollapsed()

No description

Return Value

bool