class NavigationItem extends Component (View source)

Traits

Macroable
Tappable

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|Closure|null $group
protected Closure|null $isActiveWhen
protected string|Closure $icon
protected string|Closure|null $activeIcon
protected string|Closure|null $iconColor
protected string|Closure $label
protected string|Closure|null $badge
protected string|Closure|null $badgeColor
protected bool|Closure $shouldOpenUrlInNewTab
protected int|Closure|null $sort
protected string|Closure|null $url
protected bool|Closure $isHidden
protected bool|Closure $isVisible

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

__construct(string|null $label = null)

No description

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

No description

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

No description

group(string|Closure|null $group)

No description

icon(string|Closure $icon)

No description

visible(bool|Closure $condition = true)

No description

hidden(bool|Closure $condition = true)

No description

activeIcon(string|Closure $activeIcon)

No description

iconColor(string|Closure|null $iconColor)

No description

isActiveWhen(Closure $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|null
getBadgeColor()

No description

string|null
getGroup()

No description

string
getIcon()

No description

bool
isVisible()

No description

bool
isHidden()

No description

string|null
getActiveIcon()

No description

string|null
getIconColor()

No description

string
getLabel()

No description

int
getSort()

No description

string|null
getUrl()

No description

bool
isActive()

No description

bool
shouldOpenUrlInNewTab()

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

final __construct(string|null $label = null)

No description

Parameters

string|null $label

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

No description

Parameters

string|null $label

Return Value

NavigationItem

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

No description

Parameters

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

Return Value

NavigationItem

NavigationItem group(string|Closure|null $group)

No description

Parameters

string|Closure|null $group

Return Value

NavigationItem

NavigationItem icon(string|Closure $icon)

No description

Parameters

string|Closure $icon

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(string|Closure $activeIcon)

No description

Parameters

string|Closure $activeIcon

Return Value

NavigationItem

NavigationItem iconColor(string|Closure|null $iconColor)

No description

Parameters

string|Closure|null $iconColor

Return Value

NavigationItem

NavigationItem isActiveWhen(Closure $callback)

No description

Parameters

Closure $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|null getBadgeColor()

No description

Return Value

string|null

string|null getGroup()

No description

Return Value

string|null

string getIcon()

No description

Return Value

string

bool isVisible()

No description

Return Value

bool

bool isHidden()

No description

Return Value

bool

string|null getActiveIcon()

No description

Return Value

string|null

string|null getIconColor()

No description

Return Value

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

No description

Return Value

bool