class ComponentContainer extends ViewComponent (View source)

Traits

Properties

protected string $evaluationIdentifier
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
protected Component|null $livewire from  BelongsToLivewire
protected Component|null $parentComponent from  BelongsToParentComponent
protected array|null $columns from  HasColumns
protected Component[] $components from  HasComponents
protected string|Closure|null $entryWrapperView from  HasEntryWrapper
protected bool|Closure|null $hasInlineLabels from  HasInlineLabels
protected string|null $statePath from  HasState
Model|null $record from  HasState
protected array<string,mixed> $state from  HasState
protected string $cachedAbsoluteStatePath from  HasState
protected array $extraAttributes from  HasExtraAttributes

Methods

static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

string|null
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 callable|null
getMacro(string $method)

No description

view(string|null $view, array $viewData = [])

No description

defaultView(string|Closure|null $view)

No description

array
extractPublicMethods()

No description

viewData(array $data)

No description

string
getView()

No description

string|null
getDefaultView()

No description

string
toHtml()

No description

View
render()

No description

livewire(Component|null $livewire)

No description

Component|null
getLivewire()

No description

Component|null
getParentComponent()

No description

bool
isHidden()

No description

bool
isVisible()

No description

cloneComponents()

No description

getClone()

No description

columns(array|int|null $columns = 2)

No description

array|int|null
getColumns(string|null $breakpoint = null)

No description

array
getColumnsConfig()

No description

components(array|Closure $components)

No description

schema(array|Closure $components)

No description

array
getComponents(bool $withHidden = false)

No description

Component|null
getComponent(string|Closure $callback, bool $withHidden = false)

No description

array
getFlatComponents(bool $withHidden = false)

No description

entryWrapperView(string|Closure|null $view)

No description

string|null
getCustomEntryWrapperView()

No description

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

No description

bool|null
hasInlineLabel()

No description

state(array|null $state)

No description

from  HasState
statePath(string|null $path)

No description

from  HasState
record(Model|null $record)

No description

from  HasState
string
getStatePath(bool $isAbsolute = true)

No description

from  HasState
Model|array
getState()

No description

from  HasState
Model|null
getRecord()

No description

from  HasState
void
flushCachedAbsoluteStatePath()

No description

from  HasState
extraAttributes(array|Closure $attributes, bool $merge = false)

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

__construct(Component|null $livewire = null)

No description

make(Component|null $livewire = null)

No description

Details

static mixed configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $modifyUsing
Closure|null $during
bool $isImportant

Return Value

mixed

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

mixed evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

Parameters

mixed $value
array $namedInjections
array $typedInjections

Return Value

mixed

protected mixed resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

Parameters

ReflectionParameter $parameter
array $namedInjections
array $typedInjections

Return Value

mixed

protected array resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

Parameters

string $parameterName

Return Value

array

protected array resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

Parameters

string $parameterType

Return Value

array

protected string|null getTypedReflectionParameterClassName(ReflectionParameter $parameter)

No description

Parameters

ReflectionParameter $parameter

Return Value

string|null

static void macro(string $name, callable $macro)

No description

Parameters

string $name
callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static void flushMacros()

No description

Return Value

void

static mixed __callStatic(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static protected callable|null getMacro(string $method)

No description

Parameters

string $method

Return Value

callable|null

ViewComponent view(string|null $view, array $viewData = [])

No description

Parameters

string|null $view
array $viewData

Return Value

ViewComponent

ViewComponent defaultView(string|Closure|null $view)

No description

Parameters

string|Closure|null $view

Return Value

ViewComponent

protected array extractPublicMethods()

No description

Return Value

array

ViewComponent viewData(array $data)

No description

Parameters

array $data

Return Value

ViewComponent

string getView()

No description

Return Value

string

string|null getDefaultView()

No description

Return Value

string|null

string toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

BelongsToLivewire livewire(Component|null $livewire)

No description

Parameters

Component|null $livewire

Return Value

BelongsToLivewire

Component|null getLivewire()

No description

Return Value

Component|null

BelongsToParentComponent parentComponent(Component $component)

No description

Parameters

Component $component

Return Value

BelongsToParentComponent

Component|null getParentComponent()

No description

Return Value

Component|null

Infolist getInfolist()

No description

Return Value

Infolist

bool isHidden()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

Cloneable cloneComponents()

No description

Return Value

Cloneable

Cloneable getClone()

No description

Return Value

Cloneable

HasColumns columns(array|int|null $columns = 2)

No description

Parameters

array|int|null $columns

Return Value

HasColumns

array|int|null getColumns(string|null $breakpoint = null)

No description

Parameters

string|null $breakpoint

Return Value

array|int|null

array getColumnsConfig()

No description

Return Value

array

HasComponents components(array|Closure $components)

No description

Parameters

array|Closure $components

Return Value

HasComponents

HasComponents schema(array|Closure $components)

No description

Parameters

array|Closure $components

Return Value

HasComponents

array getComponents(bool $withHidden = false)

No description

Parameters

bool $withHidden

Return Value

array

Component|null getComponent(string|Closure $callback, bool $withHidden = false)

No description

Parameters

string|Closure $callback
bool $withHidden

Return Value

Component|null

array getFlatComponents(bool $withHidden = false)

No description

Parameters

bool $withHidden

Return Value

array

HasEntryWrapper entryWrapperView(string|Closure|null $view)

No description

Parameters

string|Closure|null $view

Return Value

HasEntryWrapper

string|null getCustomEntryWrapperView()

No description

Return Value

string|null

HasInlineLabels inlineLabel(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

HasInlineLabels

bool|null hasInlineLabel()

No description

Return Value

bool|null

HasState state(array|null $state)

No description

Parameters

array|null $state

Return Value

HasState

HasState statePath(string|null $path)

No description

Parameters

string|null $path

Return Value

HasState

HasState record(Model|null $record)

No description

Parameters

Model|null $record

Return Value

HasState

string getStatePath(bool $isAbsolute = true)

No description

Parameters

bool $isAbsolute

Return Value

string

Model|array getState()

No description

Return Value

Model|array

| array<string, mixed>

Model|null getRecord()

No description

Return Value

Model|null

protected void flushCachedAbsoluteStatePath()

No description

Return Value

void

HasExtraAttributes extraAttributes(array|Closure $attributes, bool $merge = false)

No description

Parameters

array|Closure $attributes
bool $merge

Return Value

HasExtraAttributes

array getExtraAttributes()

No description

Return Value

array

ComponentAttributeBag getExtraAttributeBag()

No description

Return Value

ComponentAttributeBag

final __construct(Component|null $livewire = null)

No description

Parameters

Component|null $livewire

static ComponentContainer make(Component|null $livewire = null)

No description

Parameters

Component|null $livewire

Return Value

ComponentContainer