Implement gridstack min/max item dimension
Hi ! I found a big help in implementing your library.
I propose you to add better implementation of gridstack.js capabilities.
The new options for a widget are :
- minWidth : applied with
gs-item-min-widthattribute - minHeight : applied with
gs-item-min-heightattribute - maxWidth : applied with
gs-item-max-widthattribute - maxHeight : applied with
gs-item-max-heightattribute
I let you generate the dist file :)
btw : it's my first PR so I don't know which information you would need
Hi @Zacaria,
thank you for your PR. 👍 Could you please fix the indentations so that we can see better which lines have changed? See: https://github.com/kdietrich/gridstack-angular/pull/8/files Thanks!
Would you please tell me the name of the linter/formatter you are using ?
@Zacaria I've added jscs. Could you resubmit your PR? Thanks!
Hi, @Zacaria @kdietrich
I think there is no need to watch the "data-gs-min-height", "data-gs-min-width", "data-gs-max-height", "data-gs-max-width" in gridstackitem.directive.js. These four properties can't be changed by user.
PS: It is still very hard to see the changed part because of the indentation...