Skip to content

Commit

Permalink
Clarify dataIdAttr option docs
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Feb 4, 2021
1 parent 8a987c0 commit 0656d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -129,7 +129,7 @@ var sortable = new Sortable(el, {
preventOnFilter: true, // Call `event.preventDefault()` when triggered `filter`
draggable: ".item", // Specifies which items inside the element should be draggable

dataIdAttr: 'data-id',
dataIdAttr: 'data-id', // HTML attribute that is used by the `toArray()` method

ghostClass: "sortable-ghost", // Class name for the drop placeholder
chosenClass: "sortable-chosen", // Class name for the chosen item
Expand Down Expand Up @@ -549,7 +549,7 @@ Demo: https://jsbin.com/becavoj/edit?js,output
---


### Method
### Methods


##### option(name:`String`[, value:`*`]):`*`
Expand Down

0 comments on commit 0656d62

Please sign in to comment.