1.0.0 • Published 4 years ago

doz-combo v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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

NameDefaultDescription

Events

NameArgsDescription
itemsArray string list for the combo
valueThe 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