Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60c2f0a

Browse files
committed
add item class
1 parent 7aeafad commit 60c2f0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gridstack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@
326326
var self = this;
327327
el = $(el);
328328

329+
el.addClass(this.opts.item_class);
330+
329331
var node = self.grid.add_node({
330332
x: el.attr('data-gs-x'),
331333
y: el.attr('data-gs-y'),

0 commit comments

Comments
 (0)