Skip to content

Commit

Permalink
add methods replace and remove
Browse files Browse the repository at this point in the history
  • Loading branch information
davicotico authored Jun 20, 2017
1 parent 46a11cf commit 14cddf5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ Insert an item
* array $item - Associative array with item attributes (text, href, icon, title)
* string $before_at (Optional) The reference position for insert
* string $parent (Optional) The parent if the insert is in submenu

### remove($text)
Remove an item (from top level) by text attribute

**Parameters:**
* string $text Text item

### replace(array $newItem, $text)
Replace an item (find by text attribute)

**Parameters:**
* array $newItem The new item
* string $text The text item for search

### html()
The Html menu

Expand Down

0 comments on commit 14cddf5

Please sign in to comment.