-
8 Mar 2011 2:39 PM #1
using TabPanel button icons in a Toolbar?
using TabPanel button icons in a Toolbar?
I'd like to use the cool TabPanel button icons (download, favorites, etc) in an Ext.Toolbar of mine. Could someone let me if it's possible to set the cls property on the toolbar's buttons so this can happen? I've been experimenting but have had no luck.
-
8 Mar 2011 3:27 PM #2
There are multiple posts about this, but here's a basic idea of what you can do…
Call a custom style sheet with an element like this:
Then call that property when setting up the panels that reside in the TabPanel:Code:.NewIcon { -webkit-mask-box-image: url('../img/new_icon.png'); }
This will call your custom icon.Code:new Ext.Panel({ iconCls: 'NewIcon' });-------------------------------------------
Mark Wyner, Partner, Bunker
http://bunkercollective.com/
-
8 Mar 2011 4:55 PM #3
Simple but useful. Thanks markwyner.
-
8 Mar 2011 5:01 PM #4
Absolutely!
-------------------------------------------
Mark Wyner, Partner, Bunker
http://bunkercollective.com/
-
9 Mar 2011 8:23 AM #5
Thanks much Mark, I'll put this to good use.
-
2 Aug 2011 12:43 PM #6
Actually it doesnt work for me, I followed sample code but no icon displayed, instead I have IMG tag appear with this content
What is wrong?Code:<img src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" class="NewIcon" id="ext-gen1023"/>
-
29 Jan 2013 8:05 AM #7
Are you using sass for you scss file?

Similar Threads
-
How to create my own Toolbar Icons?
By ssdesign in forum Sencha Touch 1.x: DiscussionReplies: 3Last Post: 7 Jul 2011, 9:07 AM -
All Picto icons available on Toolbar?
By Bucs in forum Sencha Touch 1.x: DiscussionReplies: 8Last Post: 26 Jan 2011, 1:47 PM -
TabPanel toolbar button
By qooleot in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 5 Dec 2010, 12:19 PM -
Toolbar Icons not rendering
By pinheiro.cc in forum Ext GWT: DiscussionReplies: 9Last Post: 6 Apr 2010, 7:53 AM -
Toolbar button 16x16 icons chopped by 1px in FF
By TDB in forum Ext GWT: Bugs (2.x)Replies: 0Last Post: 20 Jan 2010, 5:26 PM


Reply With Quote