doz-combo

1.0.0 • Public • Published

doz-combo

Combo list component for DOZ

Install

npm install --save doz-combo

Live here

Usage

Globally

import Doz from 'doz'

new Doz({
        root: '#app',
        props:{
            items : [
                {key: 0, value: "zero"},
                {key: 1, value: "one"},
                {key: 2, value: "two"},
                {key: 3, value: "three"}
            ]
        },
        template(h) {
            return h`
                <doz-combo d:store="boundList"/>
            `
        },

        onMountAsync(){
            const combo = this.getStore('boundList');
            combo.items = this.props.items;
        }
    });

Locally

import Doz from 'doz'

Props

Name Default Description

Events

Name Args Description
items Array string list for the combo
value The value of the input field

Changelog

You can view the changelog here

License

doz-combo is open-sourced software licensed under the MIT license

Author

Pietro Lembo

Readme

Keywords

Package Sidebar

Install

npm i doz-combo

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

24 kB

Total Files

8

Last publish

Collaborators

  • p.lembo