OverviewSince 2.0 The ace:checkboxButton component is a simple true/false selection used to toggle a value that is bound to the button. As of EE 3.3.0_P02/4.0 release, the buttonGroup component can be used to manage a group of checkboxButton components.
Getting Started<html ... xmlns:ace="http://www.icefaces.org/icefaces/components"> <h:body> <h:form> <ace:checkboxButton value="#{button.checked}" label="checkbox"/> </h:form> </h:body> </html> Attributes
label The label of the button-what the user sees that relates to that particular button. For example, "Remember Me" style a pass through to the root element of the component. group ID of button group component if this button is outside of the button group but wants to logically belong to the group. styleClass a pass through to the root element of the component. tabindex a pass through to the root element of the component, default=0. disabled a pass through to the root element of the component. The following attributes are supported as pass-thru attributes: accesskey, alt, dir, label, lang, style, tabindex, title, type, onchange, onselect, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onblur, onfocus Event ListenersAs a descendant of UIInput, this component supports a value change listener.
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 SupportDefault browser keyboard support for <button> elements (i.e. tabbing in and out, pressing space to activate). The following ARIA roles are supported: checkbox. CSS ClassesThe following markup represents the basic HTML structure of the component and the CSS classes it uses. <!-- Root container --> <div class="ice-checkboxbutton [user defined classes]" style="[user defined styles]"> <span class="ui-button ui-widget"> <span class="first-child"> <button class="ui-corner-all ui-widget-content ice-checkboxbutton-checked"> <!-- Icon --> <span class="fa fa-check-square-o fa-lg"></span> </button> </span> </span> </div> Known IssuesNone. Additional ResourcesNone. |
CheckboxButton
© Copyright 2021 ICEsoft Technologies Canada Corp.