Flagrate API documentation

Home ▲
class

flagrate.Element

The flagrate.Element object provides a variety of powerful DOM methods for interacting with DOM elements.

Example

var preview = flagrate.createElement().insertTo(x);
preview.on('updated', function (e) {
  console.log('fired custom event', e);
});

var input = flagrate.createTextInput().insertTo(x);
input.on('change', function () {
  preview.updateText(input.value);
  preview.fire('updated');
});

Inheritance


Constructor