Section
class Section extends Component implements HasFooterActions, HasHeaderActions (View source)
Traits
Properties
protected string | $evaluationIdentifier | from EvaluatesClosures | |
static protected Closure>> | $macros | from Macroable | |
protected string | $view | ||
protected string|Closure|null | $defaultView | from ViewComponent | |
protected array<string,mixed> | $viewData | from ViewComponent | |
protected string | $viewIdentifier | from ViewComponent | |
protected bool|Closure|null | $canGrow | from CanGrow | |
protected ComponentContainer | $container | from BelongsToContainer | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected array | $columnSpan | from CanSpanColumns | |
protected array | $columnStart | from CanSpanColumns | |
protected Action[] | $cachedActions | from HasActions | |
protected array | $actions | from HasActions | |
protected Action|null | $action | from HasActions | |
protected Component[] | $childComponents | from HasChildComponents | |
protected string|Closure|null | $entryWrapperView | from HasEntryWrapper | |
protected string|Closure|null | $id | from HasId | |
protected bool|Closure|null | $hasInlineLabel | from HasInlineLabel | |
protected string|Closure|null | $key | from HasKey | |
protected bool|Closure | $isLabelHidden | from HasLabel | |
protected Htmlable|Closure|null | $label | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected MaxWidth|string|Closure|null | $maxWidth | from HasMaxWidth | |
protected array<string,mixed> | $meta | from HasMeta | |
protected mixed | $defaultState | from HasState | |
protected mixed | $getStateUsing | from HasState | |
protected string|null | $statePath | from HasState | |
protected string|Closure|null | $separator | from HasState | |
protected bool|Closure | $isDistinctList | from HasState | |
protected string | $cachedAbsoluteStatePath | from HasState | |
protected array|null | $columns | from HasColumns | |
protected array | $extraAttributes | from HasExtraAttributes | |
protected bool|Closure | $isCollapsed | from CanBeCollapsed | |
protected bool|Closure|null | $isCollapsible | from CanBeCollapsed | |
protected bool|Closure | $shouldPersistCollapsed | from CanBeCollapsed | |
protected bool|Closure | $isCompact | from CanBeCompacted | |
protected Alignment|Closure|null | $footerActionsAlignment | from HasFooterActionsAlignment | |
protected Action[] | $cachedFooterActions | from HasFooterActions | |
protected array | $footerActions | from HasFooterActions | |
protected Action[] | $cachedHeaderActions | from HasHeaderActions | |
protected array | $headerActions | from HasHeaderActions | |
protected Htmlable|Closure|null | $description | from HasDescription | |
protected array | $extraAlpineAttributes | from HasExtraAlpineAttributes | |
protected Htmlable|Closure|null | $heading | from HasHeading | |
protected Htmlable|Closure|null | $icon | from HasIcon | |
protected IconPosition|string|Closure|null | $iconPosition | from HasIcon | |
protected IconSize|string|Closure|null | $iconSize | from HasIcon | |
protected string | $iconColor | from HasIconColor | |
protected bool|Closure|null | $isAside | ||
protected bool|Closure | $isContentBefore |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
static void
macro(string $name, callable $macro)
No description
static void
mixin(object $mixin, bool $replace = true)
No description
static void
flushMacros()
No description
static mixed
__callStatic(string $method, array $parameters)
No description
mixed
__call(string $method, array $parameters)
No description
static protected callable|null
getMacro(string $method)
No description
ViewComponent
view(string|null $view, array $viewData = [])
No description
ViewComponent
defaultView(string|Closure|null $view)
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string|null
getDefaultView()
No description
string
toHtml()
No description
View
render()
No description
CanGrow
grow(bool|Closure|null $condition = true)
No description
bool
canGrow(bool $default = true)
No description
BelongsToContainer
container(ComponentContainer $container)
No description
ComponentContainer
getContainer()
No description
Infolist
getInfolist()
No description
Component|null
getLivewire()
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
hiddenWhenAllChildComponentsHidden()
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
bool
isHidden()
No description
bool
isVisible()
No description
CanSpanColumns
columnSpan(array|int|string|Closure|null $span)
No description
CanSpanColumns
columnSpanFull()
No description
CanSpanColumns
columnStart(array|int|string|Closure|null $start)
No description
array|int|string|null
getColumnSpan(int|string|null $breakpoint = null)
No description
array|int|string|null
getColumnStart(int|string|null $breakpoint = null)
No description
Cloneable
getClone()
No description
HasActions
action(Action|null $action)
No description
HasActions
registerActions(array $actions)
No description
Action|null
getAction(string|array|null $name = null)
No description
array
getActions()
No description
array
cacheActions()
No description
HasChildComponents
childComponents(array|Closure $components)
No description
HasChildComponents
schema(array|Closure $components)
No description
array
getChildComponents()
No description
ComponentContainer
getChildComponentContainer(array-key $key = null)
No description
array
getChildComponentContainers(bool $withHidden = false)
No description
bool
hasChildComponentContainer(bool $withHidden = false)
No description
HasEntryWrapper
entryWrapperView(string|Closure|null $view)
No description
string
getEntryWrapperView()
No description
string|null
getCustomEntryWrapperView()
No description
in
HasId at line 11
HasId
id(string|Closure|null $id)
No description
string|null
getId()
No description
HasInlineLabel
inlineLabel(bool|Closure|null $condition = true)
No description
bool|null
hasInlineLabel()
No description
in
HasKey at line 11
HasKey
key(string|Closure|null $key)
No description
string|null
getKey()
No description
HasLabel
hiddenLabel(bool|Closure $condition = true)
No description
HasLabel
label(Htmlable|Closure|null $label)
No description
HasLabel
translateLabel(bool $shouldTranslateLabel = true)
No description
Htmlable|null
getLabel()
No description
bool
isLabelHidden()
No description
HasMaxWidth
maxWidth(MaxWidth|string|Closure|null $width)
No description
MaxWidth|string|null
getMaxWidth()
No description
HasMeta
meta(string $key, mixed $value)
No description
mixed
getMeta(string|array|null $keys = null)
No description
bool
hasMeta(string|array $keys)
No description
bool
hasRelationship(Model $record)
No description
Relation|null
getRelationship(Model $record, string|null $statePath = null)
No description
array
getRelationshipResults(Model $record, array|null $relationships = null)
No description
string
getRelationshipAttribute(string|null $statePath = null)
No description
string|null
getRelationshipName(string|null $statePath = null)
No description
HasState
getStateUsing(mixed $callback)
No description
HasState
state(mixed $state)
No description
HasState
default(mixed $state)
No description
HasState
distinctList(bool|Closure $condition = true)
No description
bool
isDistinctList()
No description
mixed
getDefaultState()
No description
mixed
getState()
No description
HasState
separator(string|Closure|null $separator = ',')
No description
HasState
statePath(string|null $path)
No description
string|null
getSeparator()
No description
Model|null
getRecord()
No description
bool
hasStatePath()
No description
string
getStatePath(bool $isAbsolute = true)
No description
mixed
getStateFromRecord(Model $record)
No description
protected void
flushCachedAbsoluteStatePath()
No description
HasColumns
columns(array|int|null $columns = 2)
No description
array|int|null
getColumns(string|null $breakpoint = null)
No description
array
getColumnsConfig()
No description
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
CanBeCollapsed
collapsed(bool|Closure $condition = true, bool $shouldMakeComponentCollapsible = true)
No description
bool
isCollapsed()
No description
CanBeCollapsed
collapsible(bool|Closure|null $condition = true)
No description
bool
isCollapsible()
No description
CanBeCollapsed
persistCollapsed(bool|Closure $condition = true)
No description
bool
shouldPersistCollapsed()
No description
CanBeCompacted
compact(bool|Closure $condition = true)
No description
bool
isCompact()
No description
EntanglesStateWithSingularRelationship
relationship(string $name)
No description
HasFooterActionsAlignment
footerActionsAlignment(Alignment|Closure|null $alignment)
No description
Alignment|null
getFooterActionsAlignment()
No description
HasFooterActions
footerActions(array $actions)
No description
array
getFooterActions()
No description
array
cacheFooterActions()
No description
HasHeaderActions
headerActions(array $actions)
No description
array
getHeaderActions()
No description
array
cacheHeaderActions()
No description
HasDescription
description(Htmlable|Closure|null $description = null)
No description
Htmlable|null
getDescription()
No description
HasExtraAlpineAttributes
extraAlpineAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAlpineAttributes()
No description
ComponentAttributeBag
getExtraAlpineAttributeBag()
No description
HasHeading
heading(Htmlable|Closure|null $heading = null)
No description
Htmlable|null
getHeading()
No description
HasIcon
icon(Htmlable|Closure|null $icon)
No description
HasIcon
iconPosition(IconPosition|string|Closure|null $position)
No description
HasIcon
iconSize(IconSize|string|Closure|null $size)
No description
Htmlable|null
getIcon()
No description
IconPosition|string
getIconPosition()
No description
IconSize|string|null
getIconSize()
No description
HasIconColor
iconColor(string|array|Closure|null $color)
No description
string|array|null
getIconColor()
No description
final
__construct(Htmlable|Closure|null $heading = null)
No description
static Section
make(Htmlable|Closure|null $heading = null)
No description
Section
aside(bool|Closure|null $condition = true)
No description
bool
isAside()
No description
Section
contentBefore(bool|Closure $condition = true)
No description
bool
isContentBefore()
No description