LmnDraggableDirective
Decorators: |
|
Generic types: | DRAGGABLE_DATA DROP_AREA_DATA |
Selectors: | [ |
Implements: |
|
No documentation has been provided.
Properties
Name | Type | Description |
---|---|---|
data r |
| Data passed through all the drag and drop events. |
disabled r |
| Disable the element drag action. |
dragDrop r |
| Emit an event only when the drop operation has been performed. If the drop area is disabled, or the drop operation is not allowed on the specific drop area, no event is fired. |
dragEnd r |
| Emit an event when the drag and drop operation has completed, successfully or not. |
dragEnter r |
| Emit an event every time the cursor enter is a drop area. If the drop area is disabled, no event is fired. |
dragLeave r |
| Emit an event every time the cursor leave a drop area. If the drop area is disabled, no event is fired. |
dragOver r |
| Emit an event every few hundred millisecond if the cursor is in a drop area. If the drop area is disabled, no event is fired. |
dragStart r |
| Emit an event every time a drag operation is started on this draggable, also if the trigger is another draggable in the group. |
grouped r |
| Used to drag multiple elements together. If a string is passed, it will be used as group ID and only the draggable with the same ID will be moved. |
groupScope r |
| If set, the engine will restrict the research of grouped draggables to the children of the scope’s element. |
id r |
| The id of the draggable element. |
placeholderClass r |
| Class applied to the placeholder element in addition to the default one lmn-draggable-placeholder. |
previewClass r |
| Class applied to the preview element in addition to the default one lmn-draggable-preview. |
restrictTo r |
| Used to restrict the drop area which could accept the element drop action. Could be an id/list of id or a drop area instance/list of drop area instances. |
rootElement r |
| Possibility to add a selector which will be searched in the ancestors of the current element. If found, it will be the draggable element. |
Static Methods
static isDraggable() | ||||||
---|---|---|---|---|---|---|
Whether an element is a draggable | ||||||
Presentation
| ||||||
Parameters
Returnsboolean |
Methods
registerHandle() | ||||||
---|---|---|---|---|---|---|
Register a custom handle | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
registerPlaceholderCreator() | ||||||
---|---|---|---|---|---|---|
Register a function to create a custom placeholder element. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
registerPreviewCreator() | ||||||
---|---|---|---|---|---|---|
Register a function to create a custom preview element. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |