vpusher / the-grid

Grid layout custom element with drag and drop capabilities
https://www.webcomponents.org/element/vpusher/the-grid
MIT License
129 stars 32 forks source link

Set resize options tru attributes #28

Closed Stefdv closed 6 years ago

Stefdv commented 6 years ago

Hey, great component 👍 My issue is more a cosmetic request... Would it be possible to set resize options through attibutes instead of having to add all those spans? I would suggest to use 'corners' to add handlers to all corners

<tile corners></tile>

But anyaway...tx for the component

vpusher commented 6 years ago

@Stefdv, the resize attribute have to be set on the element that handles the grab, so you can define and design your own grabbers/grippers. There is no "default" grippers.

Consequently, <tile corners></tile> would have no effect. It is up to you to add them as tile children. That's the purpose of the feature.