| .. | ||
| 01-basic.md | ||
| 02-events.md | ||
| 03-multiple-grids.md | ||
| 04-allow-ignore.md | ||
| 05-mirrored.md | ||
| 06-responsive.md | ||
| 07-prevent-collision.md | ||
| 08-responsive-predefined-layouts.md | ||
| 09-dynamic-add-remove.md | ||
| 10-drag-from-outside.md | ||
| auto-size.md | ||
| events.md | ||
| examples.md | ||
| properties.md | ||
| README.md | ||
| styling.md | ||
| usage.md | ||
Installation
NPM
npm install vue-grid-layout --save
Yarn
yarn add vue-grid-layout
Import the library
import VueGridLayout from 'vue-grid-layout';
Add to other Vue components
export default {
components: {
GridLayout: VueGridLayout.GridLayout,
GridItem: VueGridLayout.GridItem
},
// ... data, methods, mounted (), etc.
}
browser
Include the browser-ready bundle (download from releases) in your page. The components will be automatically available.
<script src="vue-grid-layout.umd.min.js"></script>