Class Index | File Index

Classes


Class M.LabelView


Extends M.View.
The is the prototype of any label view. It basically renders a simple plain text can be styled using several properties of M.LabelView or providing one ore more css classes.
Defined in: label.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
This property can be used to specify a hyperlink target for this label.
 
This property can be used to specify a certain hyperlink type for this label.
 
Determines whether a new line '\n' within the label's value should be transformed into a line break '
' before it is rendered.
 
This property specifies the recommended events for this type of view.
 
Determines whether a tabulator '\t' within the label's value should be transformed into four spaces ' ' before it is rendered.
 
The type of this object.
Fields borrowed from class M.View:
childViews, computedValue, contentBinding, contentBindingReverse, cssClass, cssClassOnError, cssClassOnInit, cssStyle, events, hasFocus, html, id, isInline, isView, modelId, parentView, triggerActionOnChange, triggerActionOnEnter, triggerActionOnKeyUp, value
Method Summary
Method Attributes Method Name and Description
 
setValue(value)
This method sets the label's value and initiates its re-rendering.
Methods borrowed from class M.View:
addCssClass, attachToObservable, clearHtml, clearValue, clearValues, computeValue, contentDidChange, delegateValueUpdate, design, getChildViewsAsArray, getIds, getValue, getValues, gotFocus, lostFocus, nl2br, registerEvents, removeCssClass, removeCssProperty, renderUpdate, secure, setCssProperty, setValueFromDOM, style, tab2space, theme, themeChildViews
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include, set
Class Detail
M.LabelView()
Field Detail
{String} hyperlinkTarget
This property can be used to specify a hyperlink target for this label. It only works in combination with the hyperlinkType property.

{String} hyperlinkType
This property can be used to specify a certain hyperlink type for this label. It only works in combination with the hyperlinkTarget property.

{Boolean} newLineToBreak
Determines whether a new line '\n' within the label's value should be transformed into a line break '
' before it is rendered. Default: YES.

{Array} recommendedEvents
This property specifies the recommended events for this type of view.

{Boolean} tabToSpaces
Determines whether a tabulator '\t' within the label's value should be transformed into four spaces ' ' before it is rendered. Default: YES.

{String} type
The type of this object.
Method Detail
setValue(value)
This method sets the label's value and initiates its re-rendering.
Parameters:
{String} value
The value to be applied to the label view.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:10 GMT+0100 (MEZ)