class NavigationItem extends Component (View source)

Traits

Conditionable
Tappable

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
static protected Closure>> $macros from  Macroable
protected string|Closure|null $group
protected string|Closure|null $parentItem
protected bool|Closure|null $isActive
protected Htmlable|Closure|null $icon
protected Htmlable|Closure|null $activeIcon
protected string|Closure $label
protected string|Closure|null $badge
protected string $badgeColor
protected string|Closure|null $badgeTooltip
protected bool|Closure $shouldOpenUrlInNewTab
protected int|Closure|null $sort
protected string|Closure|null $url
protected bool|Closure $isHidden
protected bool|Closure $isVisible
protected NavigationItem[] $childItems

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

__construct(string|Closure|null $label = null)

No description

static NavigationItem
make(string|Closure|null $label = null)

No description

badge(string|Closure|null $badge, string|array|Closure|null $color = null)

No description

group(string|Closure|null $group)

No description

parentItem(string|Closure|null $group)

No description

icon(Htmlable|Closure|null $icon)

No description

badgeTooltip(string|Closure|null $tooltip)

No description

visible(bool|Closure $condition = true)

No description

hidden(bool|Closure $condition = true)

No description

activeIcon(Htmlable|Closure|null $activeIcon)

No description

isActiveWhen(Closure|null $callback)

No description

label(string|Closure $label)

No description

openUrlInNewTab(bool|Closure $condition = true)

No description

sort(int|Closure|null $sort)

No description

url(string|Closure|null $url, bool|Closure $shouldOpenInNewTab = false)

No description

string|null
getBadge()

No description

string|array|null
getBadgeColor()

No description

string|null
getBadgeTooltip()

No description

string|null
getGroup()

No description

string|null
getParentItem()

No description

Htmlable|null
getIcon()

No description

bool
isVisible()

No description

bool
isHidden()

No description

Htmlable|null
getActiveIcon()

No description

string
getLabel()

No description

int
getSort()

No description

string|null
getUrl()

No description

bool
isActive()

No description

bool
isChildItemsActive()

No description

bool
shouldOpenUrlInNewTab()

No description

childItems(Arrayable $items)

No description

Arrayable
getChildItems()

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

final __construct(string|Closure|null $label = null)

No description

Parameters

string|Closure|null $label

static NavigationItem make(string|Closure|null $label = null)

No description

Parameters

string|Closure|null $label

Return Value

NavigationItem

NavigationItem badge(string|Closure|null $badge, string|array|Closure|null $color = null)

No description

Parameters

string|Closure|null $badge
string|array|Closure|null $color

Return Value

NavigationItem

NavigationItem group(string|Closure|null $group)

No description

Parameters

string|Closure|null $group

Return Value

NavigationItem

NavigationItem parentItem(string|Closure|null $group)

No description

Parameters

string|Closure|null $group

Return Value

NavigationItem

NavigationItem icon(Htmlable|Closure|null $icon)

No description

Parameters

Htmlable|Closure|null $icon

Return Value

NavigationItem

NavigationItem badgeTooltip(string|Closure|null $tooltip)

No description

Parameters

string|Closure|null $tooltip

Return Value

NavigationItem

NavigationItem visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

NavigationItem

NavigationItem hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

NavigationItem

NavigationItem activeIcon(Htmlable|Closure|null $activeIcon)

No description

Parameters

Htmlable|Closure|null $activeIcon

Return Value

NavigationItem

NavigationItem isActiveWhen(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

NavigationItem

NavigationItem label(string|Closure $label)

No description

Parameters

string|Closure $label

Return Value

NavigationItem

NavigationItem openUrlInNewTab(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

NavigationItem

NavigationItem sort(int|Closure|null $sort)

No description

Parameters

int|Closure|null $sort

Return Value

NavigationItem

NavigationItem url(string|Closure|null $url, bool|Closure $shouldOpenInNewTab = false)

No description

Parameters

string|Closure|null $url
bool|Closure $shouldOpenInNewTab

Return Value

NavigationItem

string|null getBadge()

No description

Return Value

string|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 getBadgeTooltip()

No description

Return Value

string|null

string|null getGroup()

No description

Return Value

string|null

string|null getParentItem()

No description

Return Value

string|null

Htmlable|null getIcon()

No description

Return Value

Htmlable|null

bool isVisible()

No description

Return Value

bool

bool isHidden()

No description

Return Value

bool

Htmlable|null getActiveIcon()

No description

Return Value

Htmlable|null

string getLabel()

No description

Return Value

string

int getSort()

No description

Return Value

int

string|null getUrl()

No description

Return Value

string|null

bool isActive()

No description

Return Value

bool

bool isChildItemsActive()

No description

Return Value

bool

bool shouldOpenUrlInNewTab()

No description

Return Value

bool

NavigationItem childItems(Arrayable $items)

No description

Parameters

Arrayable $items

Return Value

NavigationItem

Arrayable getChildItems()

No description

Return Value

Arrayable

| Arrayable