Class Banana.Controls.DataControl
Extends
Banana.Controls.Panel.
- Methods borrowed from class Banana.Controls.Panel:
- getTagName
- 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: DataControl.js.
Creates a base data control. Most Data controls in Banana are derived from this base data control. It adds set/get data support. And as well support to bind to datasets. @see Banana.Data.DataSet Changes made in controls are automatically redirected to the data property to ensure always up to date data. Still you can as a user bind on the 'dataChanged' event to listen to data changes. Depending on the type of the control you can also use dom events to detect changes.
binds a value from data from dataset to data in this control
- Parameters:
- {mixed} Banana.Data.DataSet
- || name of the dataset
- {string} bind
- property of the data. can be like value.subvalue.subsubvalue
- Returns:
- {this}
Sets data on control. when this function is called we also trigger a datachanged event and update the dom.
- Parameters:
- {mixed} data
- for control
- {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}