Class: IWLabel

IWLabel

The label class encapsulate important attributes for updating language specific text elements.

new IWLabel(key, domElement, domAttribute)

Creates a new label.
Parameters:
Name Type Description
key String the key of the text element
domElement Object the DOM element
domAttribute String the name of the DOM attribute
Since:
  • 0.74

Methods


getDomAttribute()

Returns the name of the DOM attribute which will be updated. Typical values are: innerHTML, title and alt.
Returns:
Type
String

getDomElement()

Returns the DOM element for this label.
Returns:
Type
Object

getKey()

Returns the language key for this label.
Returns:
Type
String

toString()

Returns a string representation of this object.
Returns:
Type
String