OverviewSince 4.0 The ace:breadcrumbMenu component displays a horizontal bar of menu items. The crumbs are encoded by child menuItem tags and can be marked up inline or dynamically using a menu model. BreadcrumbMenu is a horizontal bar of breadcrumb menu items. The crumbs are encoded by child menuItem tags. The menu items can be encoded inline or dynamically using a menu model (org.icefaces.ace.model.MenuModel). The icon attribute is not used. The icon will be forced to a home page icon for the first item and a right arrow icon for the rest. The last (or only) item will also be forced to be disabled.
Getting StartedTo use the breadcrumbMenu component, first the ace component name-space has to be added in your page. <html ... xmlns:ace="http://www.icefaces.org/icefaces/components">
Now you ready to use breadcrumbMenu component, here is the basic example: Attributes
Define the model of this component: Event ListenersAlthough not containing any of its own action Listeners, each menuItem child will have it's own ability to have an acitonListener. Client Behavior EventsNo direct client behavior is currently associated with this component. Please see those for <ace:menuItem} JavaScript APIICEfaces 3.xThe client side component object is exposed through the global variable name specified in the widgetVar attribute. ICEfaces 4+The "widgetVar" attribute on the ACE components has been removed in ICEfaces 4 and in its place a new "ice.ace.instance()" client JavaScript object lookup API has been introduced. The reason for this change is to enable lazy-initialization of the ACE component JavaScript objects to improve runtime performance and reduce browser memory use. var widget = ice.ace.instance('frm:componentId);
Keyboard and ARIA SupportThe following ARIA roles are supported: menubar, menuitem. CSS ClassesThe following markup represents the basic HTML structure of the component and the CSS classes it uses. <!-- Root container --> <div class="ui-breadcrumb-menu [user defined classes]" style="[user defined styles]"> <div class="ui-widget ui-widget-content wijmo-wijmenu ui-corner-all ui-helper-clearfix wijmo-wijmenu-horizontal"> <div class="scrollcontainer checkablesupport"> <ul class="wijmo-wijmenu-list ui-helper-reset"> <!-- Breadcrumb menu item --> <li class="ui-widget wijmo-wijmenu-item ui-state-default ui-corner-all"> <a class="wijmo-wijmenu-link ui-corner-all"> <span class="wijmo-wijmenu-text"> <span class="ui-icon ui-icon-home wijmo-wijmenu-icon-left"></span> <span class="wijmo-wijmenu-text">Item label</span> </span> </a> </li> </ul> </div> </div> </div> Known IssuesNone. Additional ResourcesTutorialsThis component appears in the following ICEfaces tutorials: None |
BreadcrumbMenu
© Copyright 2021 ICEsoft Technologies Canada Corp.