Source: components/inputs/Label.js

// Generated by github.com/steida/coffee2closure 0.1.12
goog.provide('spark.components.Label');
goog.require('spark.core.View');

/**
  Label component of Spark Framework.
 */

/**
  @constructor
  @export
  @param   {Object=} options Class options.
  @param   {*=} data Class data
  @extends {spark.core.View}
 */
spark.components.Label = function(options, data) {
  var _ref;
  if (options == null) {
    options = {};
  }
  options.tagName = options['tagName'] = 'label';
  if (options.label == null) {
    options.label = (_ref = options['label']) != null ? _ref : 'Input Label';
  }
  options.template = options.label;
  this.getCssClass(options, 'label');
  spark.components.Label.superClass_.constructor.call(this, options, data);
}
goog.inherits(spark.components.Label, spark.core.View);
Spark Framework by Fatih Acet
Copyright © 2014 - Fatih Acet
Documentation generated by JSDoc 3.2.2 on 2015-07-19T22:09:29+00:00 using the DocStrap template.