From 674b34971fc302870dd191951df48ad6dbeb377e Mon Sep 17 00:00:00 2001 From: James Carbine Date: Tue, 15 Dec 2015 17:57:17 -0700 Subject: [PATCH] Add ability to use data- attributes to show up in the hierarchy. --- README.md | 4 +++- example.html | 4 ++-- jquery.mjs.nestedSortable.js | 8 ++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c53fd63..3a00e15 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,9 @@ Also, the default list type is `
    `. '2' ... 'id' => itemId - Similarly to toArray, it accepts attribute and expression options. + Similarly to toArray, it accepts attribute and expression options. + Optionally adding `data-` attributes will cause them to show up in the hierarchy. See demo for example. + ## Events diff --git a/example.html b/example.html index fe3aecb..a358947 100644 --- a/example.html +++ b/example.html @@ -284,7 +284,7 @@

    2.0

      -