Clear Up
SharpKit Reference

TextItem Class

A simple class that renders text directly into a toolbar.

    Ext.create('Ext.panel.Panel', {
            title: 'Panel with TextItem',
            width: 300,
            height: 200,
            tbar: [
            { xtype: 'tbtext', text: 'Sample Text Item' }
            renderTo: Ext.getBody()

Namespace: Ext.toolbar


Name Description
setText(JsString) Updates this item's text, setting the text to be used as innerHTML.


Name Description
text The text to be used as innerHTML (html tags are accepted). Defaults to: ""
© Copyright 2005-2011 SharpKit. All rights reserved.