class Component extends ViewComponent (View source)

Traits

Properties

protected string $evaluationIdentifier
static protected Closure>> $macros from  Macroable
protected string $view from  ViewComponent
protected string|Closure|null $defaultView from  ViewComponent
protected array<string,mixed> $viewData from  ViewComponent
protected string $viewIdentifier
protected Component|null $layout from  BelongsToLayout
protected Table|null $table from  BelongsToTable
protected string|Closure|null $hiddenFrom from  CanBeHiddenResponsively
protected string|Closure|null $visibleFrom from  CanBeHiddenResponsively
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected bool|Closure|null $canGrow from  CanGrow
protected array $columnSpan from  CanSpanColumns
protected array $columnStart from  CanSpanColumns
protected array $extraAttributes from  HasExtraAttributes
protected Model|null $record from  HasRecord
protected stdClass|null $loop from  HasRowLoopObject
protected array|Closure $components
protected bool $isCollapsible
protected bool|Closure $isCollapsed

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

layout(Component|null $layout)

No description

Component|null
getLayout()

No description

table(Table|null $table)

No description

getTable()

No description

getLivewire()

No description

hiddenFrom(string|Closure|null $breakpoint)

No description

visibleFrom(string|Closure|null $breakpoint)

No description

string|null
getHiddenFrom()

No description

string|null
getVisibleFrom()

No description

hidden(bool|Closure $condition = true)

No description

hiddenOn(string|array $livewireComponents)

No description

visible(bool|Closure $condition = true)

No description

visibleOn(string|array $livewireComponents)

No description

bool
isHidden()

No description

bool
isVisible()

No description

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

No description

from  CanGrow
bool
canGrow(bool $default = true)

No description

from  CanGrow
columnSpan(array|int|string|Closure|null $span)

No description

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

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

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

record(Model $record)

No description

Model|null
getRecord()

No description

rowLoop(stdClass|null $loop)

No description

stdClass|null
getRowLoop()

No description

schema(array|Closure $schema)

No description

components(array|Closure $components)

No description

collapsible(bool $condition = true)

No description

collapsed(bool|Closure $condition = true)

No description

bool
isCollapsed()

No description

array
getColumns()

No description

array
getComponents()

No description

bool
isCollapsible()

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

BelongsToLayout layout(Component|null $layout)

No description

Parameters

Component|null $layout

Return Value

BelongsToLayout

Component|null getLayout()

No description

Return Value

Component|null

BelongsToTable table(Table|null $table)

No description

Parameters

Table|null $table

Return Value

BelongsToTable

Table getTable()

No description

Return Value

Table

HasTable getLivewire()

No description

Return Value

HasTable

CanBeHiddenResponsively hiddenFrom(string|Closure|null $breakpoint)

No description

Parameters

string|Closure|null $breakpoint

Return Value

CanBeHiddenResponsively

CanBeHiddenResponsively visibleFrom(string|Closure|null $breakpoint)

No description

Parameters

string|Closure|null $breakpoint

Return Value

CanBeHiddenResponsively

string|null getHiddenFrom()

No description

Return Value

string|null

string|null getVisibleFrom()

No description

Return Value

string|null

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden hiddenOn(string|array $livewireComponents)

No description

Parameters

string|array $livewireComponents

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visibleOn(string|array $livewireComponents)

No description

Parameters

string|array $livewireComponents

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

CanGrow grow(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

CanGrow

bool canGrow(bool $default = true)

No description

Parameters

bool $default

Return Value

bool

CanSpanColumns columnSpan(array|int|string|Closure|null $span)

No description

Parameters

array|int|string|Closure|null $span

Return Value

CanSpanColumns

CanSpanColumns columnSpanFull()

No description

Return Value

CanSpanColumns

CanSpanColumns columnStart(array|int|string|Closure|null $start)

No description

Parameters

array|int|string|Closure|null $start

Return Value

CanSpanColumns

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

No description

Parameters

int|string|null $breakpoint

Return Value

array|int|string|null

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

No description

Parameters

int|string|null $breakpoint

Return Value

array|int|string|null

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

HasRecord record(Model $record)

No description

Parameters

Model $record

Return Value

HasRecord

Model|null getRecord()

No description

Return Value

Model|null

HasRowLoopObject rowLoop(stdClass|null $loop)

No description

Parameters

stdClass|null $loop

Return Value

HasRowLoopObject

stdClass|null getRowLoop()

No description

Return Value

stdClass|null

Component schema(array|Closure $schema)

No description

Parameters

array|Closure $schema

Return Value

Component

Component components(array|Closure $components)

No description

Parameters

array|Closure $components

Return Value

Component

Component collapsible(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Component

Component collapsed(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

Component

bool isCollapsed()

No description

Return Value

bool

array getColumns()

No description

Return Value

array

array getComponents()

No description

Return Value

array

bool isCollapsible()

No description

Return Value

bool