class ComponentContainer extends ViewComponent (View source)

Traits

Properties

static protected array $configurations from  Configurable
static protected array $importantConfigurations from  Configurable
protected string $evaluationIdentifier
protected array $evaluationParametersToRemove from  EvaluatesClosures
protected string $view
protected array $viewData from  ViewComponent
protected string $viewIdentifier
static protected array $propertyCache from  ViewComponent
static protected array $methodCache from  ViewComponent
protected HasForms $livewire from  BelongsToLivewire
Model|string|null $model from  BelongsToModel
protected Component|null $parentComponent from  BelongsToParentComponent
protected bool|Closure $isDisabled from  CanBeDisabled
protected array|null $columns from  HasColumns
protected array|Closure $components from  HasComponents
protected string|null $context from  HasContext
protected string|Closure|null $fieldWrapperView from  HasFieldWrapper
protected bool|Closure|null $hasInlineLabels from  HasInlineLabels
protected string|null $statePath from  HasState
protected $stateBindingModifiers from  HasStateBindingModifiers
protected string|int|null $debounce from  HasStateBindingModifiers
protected array $meta

Methods

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

No description

configure()

No description

void
setUp()

No description

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

array
resolveEvaluationParameter(string $parameter, Closure $value)

No description

bool
isEvaluationParameterRemoved(string $parameter)

No description

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

No description

array
extractPublicProperties()

No description

array
extractPublicMethods()

No description

viewData(array $data)

No description

string
getView()

No description

string
toHtml()

No description

View
render()

No description

livewire(HasForms $livewire)

No description

getLivewire()

No description

model(Model|string|null $model = null)

No description

void
saveRelationships()

No description

void
loadStateFromRelationships(bool $andHydrate = false)

No description

string|null
getModel()

No description

Model|null
getRecord()

No description

Model|null
getModelInstance()

No description

Component|null
getParentComponent()

No description

disabled(bool|Closure $condition = true)

No description

bool
isDisabled()

No description

bool
isEnabled()

No description

bool
isHidden()

No description

array
getValidationAttributes()

No description

array
getValidationRules()

No description

array
validate()

No description

cloneComponents()

No description

getClone()

No description

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

No description

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

No description

array
getColumnsConfig()

No description

components(array|Closure $components)

No description

schema(array|Closure $components)

No description

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

No description

array
getFlatComponents(bool $withHidden = false)

No description

array
getFlatFields(bool $withHidden = false, bool $withAbsolutePathKeys = false)

No description

array
getComponents(bool $withHidden = false)

No description

context(string|null $context = null)

No description

string
getContext()

No description

fieldWrapperView(string|Closure|null $view)

No description

string|null
getCustomFieldWrapperView()

No description

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

No description

bool|null
hasInlineLabel()

No description

void
callAfterStateHydrated()

No description

from  HasState
bool
callAfterStateUpdated(string $path)

No description

from  HasState
void
callBeforeStateDehydrated()

No description

from  HasState
array
dehydrateState(array $state = [])

No description

from  HasState
array
mutateDehydratedState(array $state = [])

No description

from  HasState
fill(array|null $state = null)

No description

from  HasState
void
hydrateState(array|null $hydratedDefaultState)

No description

from  HasState
void
fillStateWithNull()

No description

from  HasState
statePath(string|null $path)

No description

from  HasState
array
getState(bool $shouldCallHooksBefore = true)

No description

from  HasState
Arrayable
getRawState()

No description

from  HasState
array
getStateOnly(array $keys)

No description

from  HasState
array
getStateExcept(array $keys)

No description

from  HasState
string
getStatePath(bool $isAbsolute = true)

No description

from  HasState
reactive(bool $condition = true)

No description

lazy(bool $condition = true)

No description

debounce(string|int|null $delay = '500ms')

No description

stateBindingModifiers(array|null $modifiers)

No description

string
applyStateBindingModifiers(string $expression, array $lazilyEntangledModifiers = [])

No description

bool
isReactive()

No description

bool
isLazy()

No description

bool
isDebounced()

No description

string|int|null
getDebounce()

No description

dispatchEvent(string $event, ...$parameters)

No description

string|null
getComponentFileAttachmentUrl(string $statePath)

No description

bool
deleteUploadedFile(string $statePath, string $fileKey)

No description

array|null
getUploadedFileUrls(string $statePath)

No description

bool
removeUploadedFile(string $statePath, string $fileKey)

No description

bool
reorderUploadedFiles(string $statePath, array $fileKeys)

No description

string|null
getSelectOptionLabel(string $statePath)

No description

array
getSelectOptionLabels(string $statePath)

No description

array
getSelectOptions(string $statePath)

No description

array
getSelectSearchResults(string $statePath, string $search)

No description

__construct(HasForms $livewire)

No description

make(HasForms $livewire)

No description

Details

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

No description

Parameters

Closure $callback
Closure|null $during
bool $isImportant

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

Parameters

$value
array $parameters
array $exceptParameters

protected array getDefaultEvaluationParameters()

No description

Return Value

array

protected resolveEvaluationParameter(string $parameter, Closure $value)

No description

Parameters

string $parameter
Closure $value

protected bool isEvaluationParameterRemoved(string $parameter)

No description

Parameters

string $parameter

Return Value

bool

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

No description

Parameters

string $view
array $viewData

Return Value

ViewComponent

protected array extractPublicProperties()

No description

Return Value

array

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 toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

BelongsToLivewire livewire(HasForms $livewire)

No description

Parameters

HasForms $livewire

Return Value

BelongsToLivewire

HasForms getLivewire()

No description

Return Value

HasForms

BelongsToModel model(Model|string|null $model = null)

No description

Parameters

Model|string|null $model

Return Value

BelongsToModel

void saveRelationships()

No description

Return Value

void

void loadStateFromRelationships(bool $andHydrate = false)

No description

Parameters

bool $andHydrate

Return Value

void

string|null getModel()

No description

Return Value

string|null

Model|null getRecord()

No description

Return Value

Model|null

Model|null getModelInstance()

No description

Return Value

Model|null

BelongsToParentComponent parentComponent(Component $component)

No description

Parameters

Component $component

Return Value

BelongsToParentComponent

Component|null getParentComponent()

No description

Return Value

Component|null

CanBeDisabled disabled(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeDisabled

bool isDisabled()

No description

Return Value

bool

bool isEnabled()

No description

Return Value

bool

bool isHidden()

No description

Return Value

bool

array getValidationAttributes()

No description

Return Value

array

array getValidationRules()

No description

Return Value

array

array validate()

No description

Return Value

array

protected Cloneable cloneComponents()

No description

Return Value

Cloneable

Cloneable getClone()

No description

Return Value

Cloneable

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

No description

Parameters

array|int|string|null $columns

Return Value

HasColumns

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

No description

Parameters

$breakpoint

Return Value

array|int|string|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

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

array getFlatFields(bool $withHidden = false, bool $withAbsolutePathKeys = false)

No description

Parameters

bool $withHidden
bool $withAbsolutePathKeys

Return Value

array

array getComponents(bool $withHidden = false)

No description

Parameters

bool $withHidden

Return Value

array

HasContext context(string|null $context = null)

No description

Parameters

string|null $context

Return Value

HasContext

string getContext()

No description

Return Value

string

HasFieldWrapper fieldWrapperView(string|Closure|null $view)

No description

Parameters

string|Closure|null $view

Return Value

HasFieldWrapper

string|null getCustomFieldWrapperView()

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

void callAfterStateHydrated()

No description

Return Value

void

bool callAfterStateUpdated(string $path)

No description

Parameters

string $path

Return Value

bool

void callBeforeStateDehydrated()

No description

Return Value

void

array dehydrateState(array $state = [])

No description

Parameters

array $state

Return Value

array

array mutateDehydratedState(array $state = [])

No description

Parameters

array $state

Return Value

array

HasState fill(array|null $state = null)

No description

Parameters

array|null $state

Return Value

HasState

void hydrateState(array|null $hydratedDefaultState)

No description

Parameters

array|null $hydratedDefaultState

Return Value

void

void fillStateWithNull()

No description

Return Value

void

HasState statePath(string|null $path)

No description

Parameters

string|null $path

Return Value

HasState

array getState(bool $shouldCallHooksBefore = true)

No description

Parameters

bool $shouldCallHooksBefore

Return Value

array

Arrayable getRawState()

No description

Return Value

Arrayable

array getStateOnly(array $keys)

No description

Parameters

array $keys

Return Value

array

array getStateExcept(array $keys)

No description

Parameters

array $keys

Return Value

array

string getStatePath(bool $isAbsolute = true)

No description

Parameters

bool $isAbsolute

Return Value

string

HasStateBindingModifiers reactive(bool $condition = true)

No description

Parameters

bool $condition

Return Value

HasStateBindingModifiers

HasStateBindingModifiers lazy(bool $condition = true)

No description

Parameters

bool $condition

Return Value

HasStateBindingModifiers

HasStateBindingModifiers debounce(string|int|null $delay = '500ms')

No description

Parameters

string|int|null $delay

Return Value

HasStateBindingModifiers

HasStateBindingModifiers stateBindingModifiers(array|null $modifiers)

No description

Parameters

array|null $modifiers

Return Value

HasStateBindingModifiers

string applyStateBindingModifiers(string $expression, array $lazilyEntangledModifiers = [])

No description

Parameters

string $expression
array $lazilyEntangledModifiers

Return Value

string

array getStateBindingModifiers()

No description

Return Value

array

bool isReactive()

No description

Return Value

bool

bool isLazy()

No description

Return Value

bool

bool isDebounced()

No description

Return Value

bool

string|int|null getDebounce()

No description

Return Value

string|int|null

ListensToEvents dispatchEvent(string $event, ...$parameters)

No description

Parameters

string $event
...$parameters

Return Value

ListensToEvents

string|null getComponentFileAttachmentUrl(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

bool deleteUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

bool

array|null getUploadedFileUrls(string $statePath)

No description

Parameters

string $statePath

Return Value

array|null

bool removeUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

bool

bool reorderUploadedFiles(string $statePath, array $fileKeys)

No description

Parameters

string $statePath
array $fileKeys

Return Value

bool

string|null getSelectOptionLabel(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

array getSelectOptionLabels(string $statePath)

No description

Parameters

string $statePath

Return Value

array

array getSelectOptions(string $statePath)

No description

Parameters

string $statePath

Return Value

array

array getSelectSearchResults(string $statePath, string $search)

No description

Parameters

string $statePath
string $search

Return Value

array

final __construct(HasForms $livewire)

No description

Parameters

HasForms $livewire

static ComponentContainer make(HasForms $livewire)

No description

Parameters

HasForms $livewire

Return Value

ComponentContainer