Class Banana.Controls.StatusBar
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: StatusBar.js.
Class Detail
Banana.Controls.StatusBar()
Creates a status bar. It can display 4 types. Ok, Info, Warning or Error Call setMessage({text:'some info',type:'info'}) to show info text. you can also call shortcut method showInfo('some info'); Optionally you can specify the timeout. This determines how long the message will be visible on the screen. By default it will stay 10 seconds.
Method Detail
Shows error message. Optionally you can specify a list of errors which will be shown on the screen
- Parameters:
- {String} message
- {int} timeout
- {Array} errors
- Returns:
- {this}
- Parameters:
- {Object} message
- structure like {type:'warning/ok/error/info',message:'a message',timeout:undefined||1000,errors:[]}
- Returns:
- {this}