Skip to content

Commit 0656d62

Browse files
committed
Clarify dataIdAttr option docs
1 parent 8a987c0 commit 0656d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ var sortable = new Sortable(el, {
129129
preventOnFilter: true, // Call `event.preventDefault()` when triggered `filter`
130130
draggable: ".item", // Specifies which items inside the element should be draggable
131131

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

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

551551

552-
### Method
552+
### Methods
553553

554554

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

0 commit comments

Comments
 (0)