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(ComponentContainer|null $item = null)

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(ComponentContainer|null $item = null)

No description

Parameters

ComponentContainer|null $item

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