class ActionGroup extends ActionGroup (View source)

Traits

Properties

static protected array $configurations from  Configurable
static protected array $importantConfigurations from  Configurable
protected string $evaluationIdentifier from  EvaluatesClosures
protected array $evaluationParametersToRemove from  EvaluatesClosures
protected string $view
protected array $viewData from  ViewComponent
protected string $viewIdentifier from  ActionGroup
static protected array $propertyCache from  ViewComponent
static protected array $methodCache from  ViewComponent
protected $authorization from  CanBeHidden
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected string|Closure|null $color from  HasColor
protected string|Closure|null $icon from  HasIcon
protected string|Closure|null $iconPosition from  HasIcon
protected Htmlable|Closure|null $label from  HasLabel
protected bool|Closure $isLabelHidden from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected string|Closure|null $size from  HasSize
protected string|Closure|null $tooltip from  HasTooltip

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

authorize($abilities, Model|array|null $arguments = null)

No description

authorizeAny(string|array $abilities, Model|array|null $arguments = null)

No description

array
parseAuthorizationArguments(array $arguments)

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isHidden()

No description

bool
isAuthorized()

No description

color(string|Closure|null $color)

No description

from  HasColor
string|null
getColor()

No description

from  HasColor
icon(string|Closure|null $icon)

No description

from  HasIcon
iconPosition(string|Closure|null $position)

No description

from  HasIcon
string|null
getIcon()

No description

from  HasIcon
string|null
getIconPosition()

No description

from  HasIcon
disableLabel(bool|Closure $condition = true)

No description

from  HasLabel
label(Htmlable|Closure|null $label)

No description

from  HasLabel
translateLabel(bool $shouldTranslateLabel = true)

No description

from  HasLabel
Htmlable|null
getLabel()

No description

from  HasLabel
bool
isLabelHidden()

No description

from  HasLabel
size(string|Closure|null $size)

No description

from  HasSize
string|null
getSize()

No description

from  HasSize
tooltip(string|Closure|null $tooltip)

No description

string|null
getTooltip()

No description

__construct(array $actions)

No description

static ActionGroup
make(array $actions)

No description

array
getActions()

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

CanBeHidden authorize($abilities, Model|array|null $arguments = null)

No description

Parameters

$abilities
Model|array|null $arguments

Return Value

CanBeHidden

CanBeHidden authorizeAny(string|array $abilities, Model|array|null $arguments = null)

No description

Parameters

string|array $abilities
Model|array|null $arguments

Return Value

CanBeHidden

protected array parseAuthorizationArguments(array $arguments)

No description

Parameters

array $arguments

Return Value

array

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isAuthorized()

No description

Return Value

bool

HasColor color(string|Closure|null $color)

No description

Parameters

string|Closure|null $color

Return Value

HasColor

string|null getColor()

No description

Return Value

string|null

HasIcon icon(string|Closure|null $icon)

No description

Parameters

string|Closure|null $icon

Return Value

HasIcon

HasIcon iconPosition(string|Closure|null $position)

No description

Parameters

string|Closure|null $position

Return Value

HasIcon

string|null getIcon()

No description

Return Value

string|null

string|null getIconPosition()

No description

Return Value

string|null

HasLabel disableLabel(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasLabel

HasLabel label(Htmlable|Closure|null $label)

No description

Parameters

Htmlable|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

Htmlable|null getLabel()

No description

Return Value

Htmlable|null

bool isLabelHidden()

No description

Return Value

bool

HasSize size(string|Closure|null $size)

No description

Parameters

string|Closure|null $size

Return Value

HasSize

string|null getSize()

No description

Return Value

string|null

HasTooltip tooltip(string|Closure|null $tooltip)

No description

Parameters

string|Closure|null $tooltip

Return Value

HasTooltip

string|null getTooltip()

No description

Return Value

string|null

__construct(array $actions)

No description

Parameters

array $actions

static ActionGroup make(array $actions)

No description

Parameters

array $actions

Return Value

ActionGroup

array getActions()

No description

Return Value

array