shadow
ReorderHandle
je element, ktorý pridáva iným elementom funkcionalitu drag-and-drop, a slúži ako rukoväť na presúvanie položiek v skupine elementov.
Pridaním atribútu lock
na element ReorderHandle
, môžete zablokovať možnosť ťahania položky, čím sa zabráni používateľom v zmene poradia položiek.
Prvky môžu byť presúvané v rámci ich rodičovského kontajnera bez potreby explicitne definovať dropzone atribút, čím sa zjednodušuje implementácia funkcionality drag-and-drop.
Description | If true , the shift handle is disabled and cannot be interacted with. |
Attribute | disabled |
Type | boolean |
Default | false |
Description | Defines a selector for the destination zone to which items can be moved. If not defined, the parent element is used as the dropzone automatically. |
Attribute | dropzone |
Type | string |
Default | `` |
Name | Description |
---|
ReorderStart | Called when the user starts moving an item. |
reorderEnd | Called when the user finishes moving the item. |
No public methods available for this component.
Name | Description |
---|
handle | Refers to the element of the handle that is used for moving. |
Name | Description |
---|
--wje-reorder-handle-color | Handle colour for moving |
--wje-reorder-handle-opacity | Handle transparency for moving |
--wje-reorder-handle-size | Handle size for moving |
Name | Description |
---|
`` | The default location of the element content. |