-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The 'addWidget' function ignores data attributes #1276
Comments
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
May 15, 2020
Yeah i have the same problem but with The is also the problem with the min-width in this example: https://gridstackjs.com/demo/two.html# |
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
May 17, 2020
fixed in 1.1.2 |
adumesny
added a commit
that referenced
this issue
May 17, 2020
fix 'addWidget' ignores data attributes #1276
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
May 17, 2020
adumesny
added a commit
that referenced
this issue
May 17, 2020
TS: fix 'addWidget' ignores data attributes #1276, 1.1.2 release
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
The data attributes are ignored during adding new widgets through the
addWidget
function with specified coordinates.Your environment
Steps to reproduce
https://jsfiddle.net/Alexander_Sokolov/tu03kbgv/24/
column=4
data-gs-width="3"
addWidget
function to add new widget to the grid container withx
andy
coordinates:grid.addWidget(htmlElement, 0, 0);
Expected behaviour
The widget
width
is initialized from the HTML attribute (like it was in v0.4)Actual behaviour
The
data-gs-width
attribute is ignoredThe text was updated successfully, but these errors were encountered: