Method |
Description |
|
__construct ( Builder $builder, integer $id, string $title, array | string $options ) |
Constructor. |
|
__get ( string $property ) : string |
Return either a property or attribute item value. |
|
activate ( Item $item = null ) |
|
|
active ( $pattern = null ) |
|
|
add ( string $title, array | string $options = '' ) : Item |
Adds a sub item to the menu. |
|
append ( string $html ) : Item |
Appends HTML to the item. |
|
appendIcon ( ) : string |
Return the title with the icon appended automatically. |
|
attribute ( array | string $attribute, string $value = null ) : mixed |
Assign or fetch the desired attribute. |
|
attributes ( ) : string |
Fetch the formatted attributes for the item in HTML. |
|
builder ( ) |
|
|
can ( $permissions ) |
|
|
canAtLeast ( $permissions ) |
|
|
checkActiveStatus ( ) : null |
Decide if the item should be active. |
|
children ( ) : Caffeinated\Menus\Collection |
Returns all children underneath the menu item. |
|
configureLink ( array | string $options ) : null |
Configures the link for the menu item. |
|
data ( ) : string | Item |
Set or get an item's metadata. |
|
divide ( array $attributes = [] ) : void |
Insert a divider after the item. |
|
getAttributes ( ) : array |
Get all attributes. |
|
hasChildren ( ) : boolean |
Determines if the menu item has children. |
|
icon ( string $icon, string $type = 'fontawesome' ) : Item |
Appends the specified icon to the item. |
|
isActive ( ) : boolean |
Returns bool value if item is active or not. |
|
prepend ( string $html ) : Item |
Prepends HTML to the item. |
|
prependIcon ( ) : string |
Return the title with the icon prepended automatically. |
|
url ( ) : string |
Generates a valid URL for the menu item. |
|