class ActionGroup extends ActionGroup implements Arrayable (View source)

Traits

Constants

BADGE_VIEW

BUTTON_VIEW

GROUPED_VIEW

ICON_BUTTON_VIEW

LINK_VIEW

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
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 from  ActionGroup
protected ActionGroup|null $group from  BelongsToGroup
protected mixed $authorization from  CanBeHidden
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected string|Closure|null $labeledFrom from  CanBeLabeledFrom
protected bool|Closure $isOutlined from  CanBeOutlined
protected bool|Closure $hasDropdown from  HasDropdown
protected string|Closure|null $dropdownPlacement from  HasDropdown
protected string|Closure|null $dropdownMaxHeight from  HasDropdown
protected int|Closure|null $dropdownOffset from  HasDropdown
protected MaxWidth|string|Closure|null $dropdownWidth from  HasDropdown
protected string|Closure|null $groupedIcon from  HasGroupedIcon
protected Htmlable|Closure|null $label from  HasLabel
protected bool|Closure $isLabelHidden from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected ActionSize|string|Closure|null $defaultSize from  HasSize
protected ActionSize|string|Closure|null $size from  HasSize
protected string|Closure|null $tooltip from  HasTooltip
protected string|int|float|Closure|null $badge from  HasBadge
protected string $badgeColor from  HasBadge
protected string|Closure|null $badgeIcon from  HasBadge
protected IconPosition|string|Closure|null $badgeIconPosition from  HasBadge
protected string $color from  HasColor
protected string $defaultColor from  HasColor
protected array $extraAttributes from  HasExtraAttributes
protected Htmlable|Closure|null $icon from  HasIcon
protected IconPosition|string|Closure|null $iconPosition from  HasIcon
protected IconSize|string|Closure|null $iconSize from  HasIcon
Action[] $actions
protected StaticAction> $flatActions from  ActionGroup
protected Component $livewire from  ActionGroup

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

group(ActionGroup|null $group)

No description

ActionGroup|null
getGroup()

No description

ActionGroup|null
getRootGroup()

No description

authorize(mixed $abilities, Model|string|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
isAuthorized()

No description

bool
isHidden()

No description

bool
isHiddenInGroup()

No description

bool
isVisible()

No description

labeledFrom(string|Closure|null $breakpoint = null)

No description

string|null
getLabeledFromBreakpoint()

No description

outlined(bool|Closure $condition = true)

No description

bool
isOutlined()

No description

dropdown(bool|Closure $condition = true)

No description

dropdownPlacement(string|Closure|null $placement)

No description

dropdownMaxHeight(string|Closure|null $height)

No description

dropdownOffset(int|Closure|null $offset)

No description

dropdownWidth(MaxWidth|string|Closure|null $width)

No description

string|null
getDropdownPlacement()

No description

string|null
getDropdownMaxHeight()

No description

int|null
getDropdownOffset()

No description

MaxWidth|string|null
getDropdownWidth()

No description

bool
hasDropdown()

No description

groupedIcon(string|Closure|null $icon)

No description

string|null
getGroupedIcon()

No description

disableLabel(bool|Closure $condition = true) deprecated

No description

from  HasLabel
hiddenLabel(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
defaultSize(ActionSize|string|Closure|null $size)

No description

from  HasSize
size(ActionSize|string|Closure|null $size)

No description

from  HasSize
ActionSize|string|null
getDefaultSize()

No description

from  HasSize
ActionSize|string|null
getSize()

No description

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

No description

string|null
getTooltip()

No description

badge(string|int|float|Closure|null $badge = null)

No description

from  HasBadge
indicator(string|int|float|Closure|null $indicator) deprecated

No description

from  HasBadge
badgeColor(string|array|Closure|null $color)

No description

from  HasBadge
badgeIcon(string|Closure|null $icon)

No description

from  HasBadge
badgeIconPosition(IconPosition|string|Closure|null $position)

No description

from  HasBadge
indicatorColor(string|array|Closure|null $color) deprecated

No description

from  HasBadge
string|int|float|null
getBadge()

No description

from  HasBadge
string|array|null
getBadgeColor()

No description

from  HasBadge
string|null
getBadgeIcon()

No description

from  HasBadge
IconPosition|string
getBadgeIconPosition()

No description

from  HasBadge
color(string|array|Closure|null $color)

No description

from  HasColor
defaultColor(string|array|Closure|null $color)

No description

from  HasColor
string|array|null
getColor()

No description

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

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

icon(Htmlable|Closure|null $icon)

No description

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

No description

from  HasIcon
iconSize(IconSize|string|Closure|null $size)

No description

from  HasIcon
Htmlable|null
getIcon()

No description

from  HasIcon
IconPosition|string
getIconPosition()

No description

from  HasIcon
IconSize|string|null
getIconSize()

No description

from  HasIcon
__construct(array $actions)

No description

static ActionGroup
make(array $actions)

No description

actions(array $actions)

No description

bool
isBadge()

No description

button()

No description

bool
isButton()

No description

grouped()

No description

iconButton()

No description

bool
isIconButton()

No description

link()

No description

bool
isLink()

No description

livewire(Component $livewire)

No description

object
getLivewire()

No description

array
getActions()

No description

array
getFlatActions()

No description

array
toArray()

No description

static ActionGroup
fromArray(array $data)

No description

static bool
isViewSafe(string $view)

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

BelongsToGroup group(ActionGroup|null $group)

No description

Parameters

ActionGroup|null $group

Return Value

BelongsToGroup

ActionGroup|null getGroup()

No description

Return Value

ActionGroup|null

ActionGroup|null getRootGroup()

No description

Return Value

ActionGroup|null

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

No description

Parameters

mixed $abilities
Model|string|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 isAuthorized()

No description

Return Value

bool

bool isHidden()

No description

Return Value

bool

bool isHiddenInGroup()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

CanBeLabeledFrom labeledFrom(string|Closure|null $breakpoint = null)

No description

Parameters

string|Closure|null $breakpoint

Return Value

CanBeLabeledFrom

string|null getLabeledFromBreakpoint()

No description

Return Value

string|null

CanBeOutlined outlined(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeOutlined

bool isOutlined()

No description

Return Value

bool

HasDropdown dropdown(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasDropdown

HasDropdown dropdownPlacement(string|Closure|null $placement)

No description

Parameters

string|Closure|null $placement

Return Value

HasDropdown

HasDropdown dropdownMaxHeight(string|Closure|null $height)

No description

Parameters

string|Closure|null $height

Return Value

HasDropdown

HasDropdown dropdownOffset(int|Closure|null $offset)

No description

Parameters

int|Closure|null $offset

Return Value

HasDropdown

HasDropdown dropdownWidth(MaxWidth|string|Closure|null $width)

No description

Parameters

MaxWidth|string|Closure|null $width

Return Value

HasDropdown

string|null getDropdownPlacement()

No description

Return Value

string|null

string|null getDropdownMaxHeight()

No description

Return Value

string|null

int|null getDropdownOffset()

No description

Return Value

int|null

MaxWidth|string|null getDropdownWidth()

No description

Return Value

MaxWidth|string|null

bool hasDropdown()

No description

Return Value

bool

HasGroupedIcon groupedIcon(string|Closure|null $icon)

No description

Parameters

string|Closure|null $icon

Return Value

HasGroupedIcon

string|null getGroupedIcon()

No description

Return Value

string|null

HasLabel disableLabel(bool|Closure $condition = true) deprecated

deprecated Use `hiddenLabel()` instead.

No description

Parameters

bool|Closure $condition

Return Value

HasLabel

HasLabel hiddenLabel(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 defaultSize(ActionSize|string|Closure|null $size)

No description

Parameters

ActionSize|string|Closure|null $size

Return Value

HasSize

HasSize size(ActionSize|string|Closure|null $size)

No description

Parameters

ActionSize|string|Closure|null $size

Return Value

HasSize

ActionSize|string|null getDefaultSize()

No description

Return Value

ActionSize|string|null

ActionSize|string|null getSize()

No description

Return Value

ActionSize|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

HasBadge badge(string|int|float|Closure|null $badge = null)

No description

Parameters

string|int|float|Closure|null $badge

Return Value

HasBadge

HasBadge indicator(string|int|float|Closure|null $indicator) deprecated

deprecated Use `badge()` instead.

No description

Parameters

string|int|float|Closure|null $indicator

Return Value

HasBadge

HasBadge badgeColor(string|array|Closure|null $color)

No description

Parameters

string|array|Closure|null $color

Return Value

HasBadge

HasBadge badgeIcon(string|Closure|null $icon)

No description

Parameters

string|Closure|null $icon

Return Value

HasBadge

HasBadge badgeIconPosition(IconPosition|string|Closure|null $position)

No description

Parameters

IconPosition|string|Closure|null $position

Return Value

HasBadge

HasBadge indicatorColor(string|array|Closure|null $color) deprecated

deprecated Use `badgeColor()` instead.

No description

Parameters

string|array|Closure|null $color

Return Value

HasBadge

string|int|float|null getBadge()

No description

Return Value

string|int|float|null

string|array|null getBadgeColor()

No description

Return Value

string|array|null

| array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | null

string|null getBadgeIcon()

No description

Return Value

string|null

IconPosition|string getBadgeIconPosition()

No description

Return Value

IconPosition|string

HasColor color(string|array|Closure|null $color)

No description

Parameters

string|array|Closure|null $color

Return Value

HasColor

HasColor defaultColor(string|array|Closure|null $color)

No description

Parameters

string|array|Closure|null $color

Return Value

HasColor

string|array|null getColor()

No description

Return Value

string|array|null

| array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: 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

HasIcon icon(Htmlable|Closure|null $icon)

No description

Parameters

Htmlable|Closure|null $icon

Return Value

HasIcon

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

No description

Parameters

IconPosition|string|Closure|null $position

Return Value

HasIcon

HasIcon iconSize(IconSize|string|Closure|null $size)

No description

Parameters

IconSize|string|Closure|null $size

Return Value

HasIcon

Htmlable|null getIcon()

No description

Return Value

Htmlable|null

IconPosition|string getIconPosition()

No description

Return Value

IconPosition|string

IconSize|string|null getIconSize()

No description

Return Value

IconSize|string|null

__construct(array $actions)

No description

Parameters

array $actions

static ActionGroup make(array $actions)

No description

Parameters

array $actions

Return Value

ActionGroup

ActionGroup actions(array $actions)

No description

Parameters

array $actions

Return Value

ActionGroup

bool isBadge()

No description

Return Value

bool

ActionGroup button()

No description

Return Value

ActionGroup

bool isButton()

No description

Return Value

bool

ActionGroup grouped()

No description

Return Value

ActionGroup

ActionGroup iconButton()

No description

Return Value

ActionGroup

bool isIconButton()

No description

Return Value

bool

No description

Return Value

ActionGroup

No description

Return Value

bool

HasLivewire livewire(Component $livewire)

No description

Parameters

Component $livewire

Return Value

HasLivewire

object getLivewire()

No description

Return Value

object

array getActions()

No description

Return Value

array

array getFlatActions()

No description

Return Value

array

array toArray()

No description

Return Value

array

static ActionGroup fromArray(array $data)

No description

Parameters

array $data

Return Value

ActionGroup

static protected bool isViewSafe(string $view)

No description

Parameters

string $view

Return Value

bool