OverviewSince 3.0 Accordion is a container component that displays content in a stacked format.
Getting Started<ace:accordion paneChangeListener="#{accordionPanelDynamicBean.onPaneChange}" ...> <ace:accordionPane title="Electronic Devices" ...> ...... </ace:accordionPane> <ace:accordionPane title="Cars" ...> ...... </ace:accordionPane> <ace:accordionPane title="Food" ...> ...... </ace:accordionPane> </ace:accordion> Attributes
activeIndex sets the active pane, zero-based. collapsible defines if accordion can be collapsed all together. effect supports standard jQuery effects. event is the client side event to toggle the panes: "click" or "mouseover". To listen to pane change events, use paneChangeListener to designate a listener. Subsequent component render updates can be specified with onPaneChangeUpdate. Event Listeners
Client Behavior Events
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: tablist, tab, tabpanel. Keyboard interaction is supported when the accordion is focused and works by pressing the space or enter keys on the highlighted pane to open/close it and using the arrow keys to move up or down across the panes. CSS ClassesThe following markup represents the basic HTML structure of the component and the CSS classes it uses. <!-- Root container --> <div class="[user defined classes]" style="[user defined styles]"> <!-- Panes container --> <div class="ui-accordion ui-widget ui-helper-reset ui-accordion-icons"> <!-- Pane header --> <h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"> <!-- Arrow icon --> <span class="ui-icon ui-icon-triangle-1-e"></span> <a>Pane title</a> </h3> <!-- Pane content --> <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"> <div> </div> </div> </div> </div> Known IssuesNone. Additional Resources |
Accordion
© Copyright 2021 ICEsoft Technologies Canada Corp.