Class Banana.Controls.LimitCharLabel
Extends
Banana.Controls.Label.
- Methods borrowed from class Banana.Controls.Label:
- getTagName, setForControl, setTagName
- Methods borrowed from class Banana.Controls.DataControl:
- dataSetBind, getData, unDataSetBind, updateDisplay
- Methods borrowed from class Banana.UiControl:
- addControl, addCss, addCssClass, getAttribute, getAttributes, getClientId, getCss, getCssClass, getDimensions, getHtml, getHtmlAttributes, getState, getStyle, getStyleProperty, hasCssClass, registerEvents, removeAttribute, removeCssClass, removeState, setAttribute, setClientId, setCss, setEnabled, setState, setStyle, setVisible, switchCssClass, triggerEvent, unregisterEvents
- Methods borrowed from class Banana.Control:
- applyToChildren, bind, clear, createComponents, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload
Defined in: LimitCharLabel.js.
Class Detail
Banana.Controls.LimitCharLabel()
Creates a label with character limit support. if the supplied data exceeds the character limit we show only the character limit part of the data.
Method Detail
- Parameters:
- {mixed} data
- for the label
- {boolean} ignoreEvent
- when true no datachanged is triggered. This is useful when you are running in a circle or performance issues
- {boolean} ignoreDom
- when true setDomData function is not called. Useful in cases of optimizing performance
- Returns:
- {this}