Method |
Description |
|
__call ( $method, $args ) |
|
|
active ( ) : object |
Attribute insert helper for html render. |
|
addAttr ( mixed $attr, mixed $value = '' ) : object |
Add attribute to element. |
|
attr ( array $attributes ) : object |
Set the attributes of generated dropdown. |
|
closeLi ( string $li ) : string |
Generate close li tag. |
|
closeUl ( string $ul ) : string |
Generate close ul tag. |
|
hasChild ( string $key = null, mixed $value = null, Collection $data = null ) : boolean |
Child menu checker. |
|
isValid ( string $type, $render = false ) : mixed |
Array validator. |
|
make ( mixed $data ) : object |
Set the data to wrap class. |
|
multiple ( ) : object |
Multiple dropdown menu. |
|
openLi ( array $li, $extra = '' ) : string |
Generate open li tag. |
|
parent ( integer $parent = false ) : object |
Set the parent id for child elements. |
|
renderAsArray ( object $data = false, integer $parent ) : Recursion | array |
Pass to array of all data as nesting. |
|
renderAsDropdown ( object $data = false, integer $parent, boolean $first = true, integer $level ) : string |
Convert to dropdown. |
|
renderAsHtml ( object $data = false, integer $parent, boolean $first = true ) : string |
Pass to html (ul:li) as nesting. |
|
renderAsJson ( object $data = false, integer $parent ) : Recursion | array |
Pass to json string of all data as nesting. |
|
renderAsMultiple ( ) |
|
|
route ( array $route ) |
Route generator. |
|
save ( array $params ) |
Save the parameters. |
|
selected ( integer | array $values ) : object |
Save the will select values. |
|
ul ( string $items = false, $parent_id ) : string |
Generate open ul tag. |
|
ulAttr ( mixed $attr, mixed $value = '' ) : object |
Add attribute to |
|