From 14cddf55a77f8657d2f07f9f05c92f575ea3b357 Mon Sep 17 00:00:00 2001 From: David Ticona Saravia Date: Mon, 19 Jun 2017 23:54:11 -0300 Subject: [PATCH] add methods replace and remove --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 2d82518..b10e633 100644 --- a/README.md +++ b/README.md @@ -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