Skip to content

Commit

Permalink
export expando with utils + include src with npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Mar 17, 2024
1 parent 07708fa commit 41ff81f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,9 @@ Mounts a plugin to Sortable.
* clone(el`:HTMLElement`)`:HTMLElement` — create a deep copy of the set of matched elements
* toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element
* detectDirection(el`:HTMLElement`)`:String` — automatically detect the [direction](https://github.com/SortableJS/Sortable/wiki/Swap-Thresholds-and-Direction#direction) of the element as either `'vertical'` or `'horizontal'`


* index(el`:HTMLElement`, selector`:String`)`:Number` — index of the element within its parent for a selected set of elements
* getChild(el`:HTMLElement`, childNum`:Number`, options`:Object`, includeDragEl`:Boolean`):`HTMLElement` — get the draggable element at a given index of draggable elements within a Sortable instance
* expando`:String` — expando property name for internal use, sortableListElement[expando] returns the Sortable instance of that elemenet
---


Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"files": [
"Sortable.js",
"Sortable.min.js",
"modular/"
"modular/",
"src/"
],
"keywords": [
"sortable",
Expand Down
3 changes: 2 additions & 1 deletion src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,8 @@ Sortable.utils = {
nextTick: _nextTick,
cancelNextTick: _cancelNextTick,
detectDirection: _detectDirection,
getChild
getChild,
expando
};


Expand Down

0 comments on commit 41ff81f

Please sign in to comment.