Droppable
Provides functionality to add support to make an HTML element droppable into another element.
Properties
Methods
addEventListener
Attaches an event handler to a specified element. This method allows you to set up a function that will be called whenever the specified event is delivered to the target element.
Parameter | Type | Description |
---|---|---|
eventName | String | A string value that specifies the name of the event. |
handler | Function | Specifies the function to run when the event is triggered. |
Returns: Void
dataBind
Apply all pending property changes to the control.
Returns: Void
removeEventListener
Removes the attached event handler for the specified event listener.
Parameter | Type | Description |
---|---|---|
eventName | String | A string value that specifies the name of the event to be removed. |
handler | Function | Specifies the function to be removed. |
Returns: Void
Events
drop Function(DropEventArgs)
Specifies a callback function that will be triggered when the element is dropped.
out Function(DropOverOutEventArgs)
Specifies a callback function that will be triggered when the element is dragged outside the droppable element.
over Function(DropOverOutEventArgs)
Specifies a callback function that will be triggered when the element is dragged inside the droppable element.