Vue-grid-layout: Grid Item Shape and Free Movement Feature

Created on 3 Apr 2017  路  3Comments  路  Source: jbaysolutions/vue-grid-layout

I think it would be cool if there's a feature for grid item shape, as well as an option to allow dragging an item on any position without snapping to grid, allow overlaps of another grid, much more like a feature for free movement

Most helpful comment

You can do the same with vue-grid-layout as that example, just change the prop "vertical-compact" to false.

<grid-layout
            :layout="layout"
            :col-num="12"
            :row-height="30"
            :is-draggable="true"
            :is-resizable="true"
            :vertical-compact="false"
            :margin="[10, 10]"
            :use-css-transforms="true"
    >

        <grid-item v-for="item in layout"
                   :x="item.x"
                   :y="item.y"
                   :w="item.w"
                   :h="item.h"
                   :i="item.i">
            {{item.i}}
        </grid-item>
</grid-layout>

All 3 comments

  1. What do you mean by grid item shape? If you mean the styling, you can change that using css.
  2. Sorry but I don't understand what you are trying to say.

for the first part i think i know what to do for the second here's the sample https://strml.github.io/react-grid-layout/examples/11-no-vertical-compact.html

You can do the same with vue-grid-layout as that example, just change the prop "vertical-compact" to false.

<grid-layout
            :layout="layout"
            :col-num="12"
            :row-height="30"
            :is-draggable="true"
            :is-resizable="true"
            :vertical-compact="false"
            :margin="[10, 10]"
            :use-css-transforms="true"
    >

        <grid-item v-for="item in layout"
                   :x="item.x"
                   :y="item.y"
                   :w="item.w"
                   :h="item.h"
                   :i="item.i">
            {{item.i}}
        </grid-item>
</grid-layout>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gmsa picture gmsa  路  8Comments

gracefullight picture gracefullight  路  4Comments

jordangorla picture jordangorla  路  7Comments

CheyenneForbes picture CheyenneForbes  路  9Comments

vitorhps picture vitorhps  路  3Comments