npm.io
0.1.2 • Published 3 years ago

mel-dataview

Licence
—
Version
0.1.2
Deps
2
Size
2 kB
Vulns
0
Weekly
0

mel-dataview

This is a Vue component library to support code / data driven interfaces

import { BuilderTag, DataView } from 'mel-dataview'

export default
  name: 'MyComponent'
  components: {
    'data-view': DataView
  }
  data: -> 
    dv = new BuilderTag 'div'
    dv.add_div()
      .add_text("some text")
    return
      data_view: dv.data

and then in your HTML

<data-view :field="data_view" />

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve
Compiles and minifies for production
yarn build
Run your unit tests
yarn test:unit
Customize configuration

See Configuration Reference.