npm.io
0.1.1 • Published 7 years ago

menu_editor

Licence
Version
0.1.1
Deps
2
Size
209 kB
Vulns
1
Weekly
0

menu_editor

A drag and drop menu editor built with vue.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve
Compiles and minifies for production
npm run build
Run your tests
npm run test
Lints and fixes files
npm run lint
Customize configuration

See Configuration Reference.

Style

It's intentionally ustyled (mostly, see todo). This provides the most flexibility to you when you consider including it in your project.

Use in your code
npm install vue-menu-editor

Pass data back to parent component/script

<menuedit :items="your_menu_items" :validate="menu_validate" @data="menu_data"></menuedit>
...
// Send anything to validate to signal that menu edit is finished
this.menu_validate = { };
...
// In methods, handle menu data
menu_data(data) {
    this.my_menu = data;
}