Add options

This commit is contained in:
2023-11-11 13:05:31 +01:00
parent b39c7a36d5
commit 1ad5f6bb35
2 changed files with 4 additions and 2 deletions

View File

@@ -52,6 +52,8 @@ class TpSortable extends LitElement {
firstUpdated() {
this.sortable = Sortable.create(this.querySelector('[slot="list"]'), {
animation: 150,
draggable: this.selector,
handle: this.handle,
onSort: e => {
this.dispatchEvent(new CustomEvent('sorting-changed', { detail: e, bubbles: true, composed: true }));
}