al-bo / component-value-list

Base value list implementation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Value list component

build status npm version dependencies status devDependencies status Gitter

Value list is a component to build user interface, an instance of Component module.

Installation

npm install mag-component-value-list

Usage

Add the constructor to the scope:

var ValueList = require('mag-component-value-list');

Create scroll area instance:

var valueList = new ValueList({
    data: [11, 22, 35, 56, 78],
    cycle: true,
    render: function ( $body ) {
        $body.innerText = 'Number: ' + this.current.value;
    }
});

Development mode

There is a global var DEVELOP which activates additional consistency checks and protection logic not available in release mode.

Contribution

If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.

License

mag-component-value-list is released under the MIT License.

About

Base value list implementation.

License:Other


Languages

Language:JavaScript 59.2%Language:CSS 40.8%