UNPKG

kdf

Version:

KD: a non-document focused UI Framework for web applications.

19 lines (13 loc) 443 B
KDView = require './../../core/view.coffee' module.exports = class KDLabelView extends KDView constructor:(options)-> @setTitle(options.title) if options?.title? super options setDomElement:(cssClass)-> @domElement = $ "<label class='kdlabel #{cssClass}'>#{@getTitle()}</label>" setTitle:(title)-> @labelTitle = title or '' updateTitle: (title) -> @setTitle title @$().html title getTitle:-> @labelTitle