Welcome Guest Search | Active Topics | Sign In | Register

SlideMenu - How can I loop through all items on Client Side ( Javascript ) Options
mendy
Posted: Tuesday, June 1, 2010 12:28:21 PM
Rank: Member
Groups: Member

Joined: 5/27/2010
Posts: 22
Hi,

I'd like to be able to clear all the selected items by clicking on a button.
How can I loop through the whole menu?

I don't have access to eventInfo because its an external button

Thanks.
eo_support
Posted: Tuesday, June 1, 2010 2:07:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can do that with our client side JavaScript interface:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

Basically you call eo_GetObject to get the Menu object, then get the corresponding MenuGroup (SubMenu) object from the Menu object, then get all MenuItem object from the MenuGroup object. Each object provides a list of methods that you can use (for example, MenuGroup object provides getItemCount method to return the total number menu items in that group). Please use the reference section to find out what methods are available on each object.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.