0
1
Fork 0
hedera-web-mindshore/package/usr/share/hedera-web/js/htk/field/text.js

38 lines
540 B
JavaScript
Raw Normal View History

2015-03-09 08:36:54 +00:00
Htk.Text = new Class
({
Extends: Htk.Field
,Tag: 'htk-text'
,Properties:
{
/**
* Format that applies to the value.
**/
format:
{
type: String
,set: function (x)
{
this._format = _(x);
this.putValue (this._value);
}
,get: function ()
{
return this._format;
}
}
}
,_format: null
,initialize: function (props)
{
this.parent (props);
this.node = document.createTextNode ('');
}
,putValue: function (value)
{
this.node.nodeValue = Vn.Value.format (value, this._format);
}
});