rochdev/tinto

View on GitHub
lib/html/components/button.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

var Component = require('../../component');
var text = require('../properties/text');
var inherits = require('../../utils/inherits');

/**
 * @memberOf tinto.html.components
 * @extends tinto.Component
 * @constructor
 * @inheritDoc
 * @property {tinto.Attribute} label
 */
function Button() {
  Component.apply(this, arguments);

  this.property('label', text);
  this.states('enabled', 'disabled');
}

inherits(Button, Component);

module.exports = Button;