Socket
Book a DemoInstallSign in
Socket

@exmg/exm-sortable

Package Overview
Dependencies
Maintainers
15
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exmg/exm-sortable

Enables drag and drop sorting of items in a list or table

latest
npmnpm
Version
1.1.27
Version published
Maintainers
15
Created
Source

<exm-sortable> Published on npm

@exmg/exm-sortable

Enables drag and drop sorting of items in a list or table

!!! You should always handle @dom-order-change to update your local .items property to update sorted list properly

Installation

npm install @exmg/exm-sortable

Example Usage

Standard

<exm-sortable item-selector="div.box" @dom-order-change="${this.orderChange}">
  <div class="boxes">
    ${this.users.map((user) => { return html`
    <div class="box">${user.firstName}</div>
    `; })}
  </div>
</exm-sortable>

API

Slots

NameDescription
defaultElements to sort

Properties/Attributes

NameTypeDefaultDescription
handleSelectorstringNoneSelector of the 'handle' to sort
itemSelectorstringliSelector of the items
animationEnabledbooleanfalseThe value that gets copied and displayed
clonedClassstringNoneClass of the cloned element
draggedClassstringNoneClass of the dragged element
animationTimingobject{duration: 200, easing: 'ease-out'}The timing of the animation
orientationstringNoneWhether or not to display the sortable element horizontally or vertically

Methods

None

Styling

None

Additional references

Keywords

web-components

FAQs

Package last updated on 09 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.