Sencha Touch provides a rich property (property name - cls) to change font color, font-size etc. You can simply create your CSS class and just add with control property CLS it will made changes in control.
You can simply drag and drop titlebar from toolbox to view inspector if you are using Sencha Architect but if are not using Sencha Architect then you can simply add the following line of code in your application:3
Ext.create('Ext.Panel', { fullscreen: true, styleHtmlContent: true, items: [{ xtype: 'titlebar', docked: 'top', title: 'Panel title', items: [{ xtype: 'button', align: 'left', cls: 'your_custom_css_class_forTitleBar', iconCls: 'arrow_left', iconMask: true, ui: 'plain', handler: function () { Ext.Msg.alert('You clicked the left button'); } // handler }, { xtype: 'button', align: 'right', cls: 'your_custom_css_class_forbutton', iconCls: 'arrow_right', iconMask: true, ui: 'plain', handler: function () { Ext.Msg.alert('You clicked the right button'); } // handler }] // items }, { html: 'This is the body of the panel' }] // items }); // create()
Mark as answer if this solution will resolve your problem. Thanks!!
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Can you answer this question?
Write Answer1 Answers