attaches a status bar object to component's bottom
conf | object | optional, status bar init params |
object | status bar object |
/* 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();
conf param was added in version 4.0
Back to top