Skip to content

Commit c0c1e47

Browse files
authored
Merge pull request #749 from luckylooke/patch-3
Added data-gs-id to item attributes list
2 parents c7642bf + ba41f9a commit c0c1e47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ gridstack.js API
103103

104104
- `data-gs-x`, `data-gs-y` - element position
105105
- `data-gs-width`, `data-gs-height` - element size
106+
- `data-gs-id`- good for quick identification (for example in change event)
106107
- `data-gs-max-width`, `data-gs-min-width`, `data-gs-max-height`, `data-gs-min-height` - element constraints
107108
- `data-gs-no-resize` - disable element resizing
108109
- `data-gs-no-move` - disable element moving

0 commit comments

Comments
 (0)