Add options
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user