Check documentation for the latest version 6.0 of dhtmlxSuite attachStatusBar DHTMLX Docs

attachStatusBar

attaches a status bar object to component's bottom

object attachStatusBar( [object conf] );

Parameters

confobjectoptional, status bar init params

Returns

objectstatus bar object

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();

Change log

conf param was added in version 4.0

Back to top