Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.69 KB

README.md

File metadata and controls

63 lines (44 loc) · 1.69 KB

cg-template-component

JavaScript Accessible your_name Component by Competentum Group. Exported as a UMD module.

NPM

Contents

Installation

Component can be installed with npm:

npm install --save cg-template-component

Usage

to be described

API

Static properties

to be described

new CgTemplateComponent(settings) - constructor

to be described

Instance properties

to be described

DOM Elements

to be described

Instance methods

to be described

.on(eventName, listener)

  • eventName {string} The name of the event.
  • listener {Function} The callback function.

Adds the listener function to the end of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

slider.on(CgTemplateComponent.EVENTS.CHANGE, function (value) {
    console.log('changed to:', value);
});

Current class extends Node.js EventEmitter. More information about working with events you can get here.