OverviewSince 3.0 The <ace:resizable> component is used to give another component the capability of being resized.
Getting StartedThe component we want to make resizable is specified as the value of the for attribute. <h:panelGroup id="panel"> </h:panelGroup> <ace:resizable for="panel" /> Alernatively, the for value can be omitted, and the parent component will be made resizable. <h:panelGroup id="panel"> <ace:resizable /> </h:panelGroup> Attributes
for Specifies the id of the component to make resizable.. handles Comma-separated list of handles to use. Possible values are n, e, s, w, ne, se, sw, nw. Default value is "e, s, se". ghost Boolean value to specify whether a semi-transparent helper element is shown for resizing containment Boolean value to specify whether the resizable element should be restricted to its parent's boundaries. aspectRatio Boolean value to specifies whether the aspect ratio of the element should be maintained when resizing. Event Listeners
Client Behavior Events
JavaScript APIsICEfaces 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 supportThere is no keyboard and ARIA support. CSS ClassesThis component adds one or more of the following nodes to a container, serving as handles to resize it. <div class="ui-resizable-handle ui-resizable-n" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-e" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-s" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-w" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-sw" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-ne" style="z-index: 1000;"></div> <div class="ui-resizable-handle ui-resizable-nw" style="z-index: 1000;"></div> Known IssuesNone, at the moment. Other ResourcesICEfaces Showcase application, ace:resizable demo. |
Resizable
© Copyright 2021 ICEsoft Technologies Canada Corp.