OverviewSince 4.3 The ace:borderLayout component is a container with five different regions (north, south, east, west and center), which are collapsible, expandable, closable, and resizable, except for the center region. The center region is required to be defined for the component to function properly. The regions are defined by nesting ace:borderLayoutPane components in this component. Each BorderLayoutPane has its own ajax events. Moreover, ace:borderLayout's can be nested inside ace:borderLayoutPane's, thus allowing to build any sort of complex layout desired.
Getting StartedIn its typical form, an ace:borderLayout component can be defined as follows. <h:form id="form"> <ace:borderLayout> <ace:borderLayoutPane position="center" headerText="Center" footerText="(center footer)"> <h:outputText value="CENTER" /> </ace:borderLayoutPane> <ace:borderLayoutPane position="north" headerText="North" footerText="(north footer)" resizable="true" closable="true" toggleable="true"> <h:outputText value="NORTH" /> </ace:borderLayoutPane> <ace:borderLayoutPane position="south" headerText="South" footerText="(south footer)" resizable="true" closable="true" toggleable="true"> <h:outputText value="SOUTH" /> </ace:borderLayoutPane> <ace:borderLayoutPane position="east" headerText="East" footerText="(east footer)" resizable="true" closable="true" toggleable="true"> <h:outputText value="EAST" /> </ace:borderLayoutPane> <ace:borderLayoutPane position="west" headerText="West" footerText="(west footer)" resizable="true" closable="true" toggleable="true"> <h:outputText value="WEST" /> </ace:borderLayoutPane> </ace:borderLayout> </h:form> As mentioned before, only the center pane is required. The others are optional. Other ace:borderLayout's con be nested inside one or more of these panes, each with its own configuration and defined number of panes. Attributes
Most of the configuration is done on the ace:borderLayoutPane components. This container component only has two attributes. style The style to apply to the main container of the layout." styleClass The style class of the main container of the layout." Client Behavior EventsThe ajax events are defined on the ace:borderLayourPane component. JavaScript APIsICEfaces 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 SupportNot supported at the moment. Known IssuesNone at the momeny |
BorderLayout
© Copyright 2021 ICEsoft Technologies Canada Corp.