OverviewSince 3.0 The <ace:droppable> tag makes another component capable of accepting draggable components on its area and firing events when this occurs.
Getting StartedThe component we want to make droppable is specified as the value of the for attribute. <h:panelGroup id="drop" styleClass="drop-area"> </h:panelGroup> <ace:droppable for="drop" /> Alernatively, the for value can be omitted and the parent component will be made droppable. <h:panelGroup id="drop" styleClass="drop-area"> <ace:droppable /> </h:panelGroup> Attributes
for Id of the component that will have the droppable behavior. accept jQuery selector to define the set of acceptable draggables. scope Keyword of this droppable component. Only draggables with the same keyword will be allowed to be dropped on this droppable. tolerance Specifies the policy to determine when a draggable is considered to be 'over' the droppable. Possible values include: fit (draggable must be completely contained in droppable), intersect (> 50% of the draggable must be inside the droppable). pointer (cursor must be inside droppable) and touch (the draggable touches any part of the droppable). 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 supportAt the moment, there is no keyboard and ARIA suppport. Known IssuesNone. Other ResourcesNone. |
Droppable
© Copyright 2021 ICEsoft Technologies Canada Corp.