- items: [{\r
- text: 'A Button'\r
- }, '-', 'Plain Text', ' ', ' ']\r
+\r
+ // defaults to use when the status is cleared:\r
+ defaultText: 'Default status text',\r
+ //defaultIconCls: 'default-icon',\r
+ \r
+ // values to set initially:\r
+ text: 'Ready',\r
+ iconCls: 'x-status-valid',\r
+\r
+ // any standard Toolbar items:\r
+ items: [\r
+ {\r
+ text: 'Show Warning & Clear',\r
+ handler: function (){\r
+ var sb = Ext.getCmp('basic-statusbar');\r
+ sb.setStatus({\r
+ text: 'Oops!',\r
+ iconCls: 'x-status-error',\r
+ clear: true // auto-clear after a set interval\r
+ });\r
+ }\r
+ },\r
+ {\r
+ text: 'Show Busy',\r
+ handler: function (){\r
+ var sb = Ext.getCmp('basic-statusbar');\r
+ // Set the status bar to show that something is processing:\r
+ sb.showBusy();\r
+ }\r
+ },\r
+ {\r
+ text: 'Clear status',\r
+ handler: function (){\r
+ var sb = Ext.getCmp('basic-statusbar');\r
+ // once completed\r
+ sb.clearStatus(); \r
+ }\r
+ },\r
+ '-',\r
+ 'Plain Text'\r
+ ]\r