attachStatusBar
attaches a status bar object to component's bottom
object attachStatusBar( [object conf] );
conf | object | optional, status bar init params |
Example
/* conf param properties */
{
text: "Text", // status bar init text
height: 20 // status bar init height
}
/* init/attach status bar */
// default behaviour
var sbObj = dhxComponent.attachStatusBar();
// with text
var sbObj = dhxComponent.attachStatusBar({text: "Loading..."});
// with text and custom height
var sbObj = dhxComponent.attachStatusBar({text: "Loading...", height: 30});
/* operations with status bar object */
// set text
sbObj.setText("Page was successfuly loaded");
// get text
var text = sbObj.getText();
Back to top