MenuItem
class MenuItem extends Component (View source)
Traits
Properties
protected string | $evaluationIdentifier | from EvaluatesClosures | |
static protected Closure>> | $macros | from Macroable | |
protected string | $color | ||
protected string|Closure|null | $icon | ||
protected string|Closure|null | $label | ||
protected string|Closure|null | $postAction | ||
protected int|Closure|null | $sort | ||
protected Native|null | $url | ||
protected bool|Closure | $shouldOpenUrlInNewTab | ||
protected bool|Closure | $isHidden | ||
protected bool|Closure | $isVisible |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
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 protected callable|null
getMacro(string $method)
No description
final
__construct()
No description
static MenuItem
make()
No description
MenuItem
color(string|array|Closure|null $color)
No description
MenuItem
icon(string|Closure|null $icon)
No description
MenuItem
label(string|Closure|null $label)
No description
MenuItem
postAction(string|Closure|null $action)
No description
MenuItem
sort(int|Closure|null $sort)
No description
MenuItem
url(string|Closure|null $url, bool|Closure $shouldOpenInNewTab = false)
No description
MenuItem
openUrlInNewTab(bool|Closure $condition = true)
No description
MenuItem
hidden(bool|Closure $condition = true)
No description
MenuItem
visible(bool|Closure $condition = true)
No description
bool
isVisible()
No description
bool
isHidden()
No description
string|array|null
getColor()
No description
string|null
getIcon()
No description
string|null
getLabel()
No description
string|null
getPostAction()
No description
int
getSort()
No description
string|null
getUrl()
No description
bool
shouldOpenUrlInNewTab()
No description