How to use the uikit.sortable function in uikit

To help you get started, we’ve selected a few uikit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polonel / trudesk / src / client / components / Settings / Menu / index.jsx View on Github external
componentDidMount () {
    if (this.props.draggable) {
      const menu = $(this.menu)
      this.menuSortable = UIkit.sortable(menu, {
        handleClass: 'drag-handle'
      })

      if (this.props.onMenuDrag) this.menuSortable.on('change.uk.sortable', this.props.onMenuDrag)
    }
  }
github unite-cms / unite-cms / src / Bundle / CollectionFieldBundle / Resources / webpack / vue / field / Collection.vue View on Github external
setTimeout(() => {
                    UIkit.sortable(this.$el.querySelector('.collection-wrapper'), {
                        handle: '.uk-sortable-handle',
                        animation: 300,
                    });
                }, 100);
            });
github polonel / trudesk / src / client / components / Settings / Menu / index.jsx View on Github external
componentDidUpdate () {
    if (this.props.draggable && !this.menuSortable) {
      const menu = $(this.menu)
      this.menuSortable = UIkit.sortable(menu, {
        handleClass: 'drag-handle'
      })

      if (this.props.onMenuDrag) this.menuSortable.on('change.uk.sortable', this.props.onMenuDrag)
    }
  }
github unite-cms / unite-cms / src / Bundle / CoreBundle / Resources / webpack / vue / views / Fields / TreeViewChildren.vue View on Github external
setTimeout(() => {
                        UIkit.sortable(this.$el, {
                            handle: '.uk-sortable-handle',
                            nestableContainerClass: 'unite-div-table-tbody',
                            nestable: true
                        });
                        UIkit.util.on(this.$el, 'moved', this.moved);
                        UIkit.util.on(this.$el, 'added', this.nest);
                    }, 100);
                });
github unite-cms / unite-cms / src / Bundle / CoreBundle / Resources / webpack / vue / views / TableContent.vue View on Github external
mounted() {
            if(this.isSortable && this.updateable) {
                UIkit.sortable(this.$el.querySelector('.unite-div-table-tbody'), {
                    handle: '.uk-sortable-handle',
                    nestable: true
                });
                UIkit.util.on(this.$el, 'moved', this.moved);
            }
        },
        updated() {
github unite-cms / unite-cms / src / Bundle / CoreBundle / Resources / webpack / vue / views / TableContent.vue View on Github external
mounted() {
            if(this.isSortable && this.updateable) {
                UIkit.sortable(this.$el.querySelector('.unite-div-table-tbody'), {
                    handle: '.uk-sortable-handle',
                    nestable: true
                });
                UIkit.util.on(this.$el, 'moved', this.moved);
            }
        },
        updated() {