I have been looking to add a ? (Help) tool to my panel and have learned how to use the addTool or do it inline with tools but it seems that the tool sprite is defined with a ext list of chosen icons.
My question is what is the best way to go about making my own icon ex: 'help' and have it show up on the tools.
-Mike
Perfect! Thanks aconran.
I was thinking about that way after I went to sleep just didn't come to me at first.
That makes since and should make a good addition for my panels to load up my help dialog with the ref id of the panel. Linda Chalker-Scott, Ph.D., Extension Horticulturist and Associate :: File Format: PDF/Adobe Acrobat - View as HTML“…sterilize pruning tools using a solution of 1½ cups of liquid chlorine bleach in 2 gallons of water. After each cut, dip the pruner or saw into this http://www.puyallup.wsu.edu/~Linda Chalker-Scott/Horticultural Myths_files/Myths/Pruning tools.pdfHOME |
-Mike
Mike -
Simply add your own custom id to the tools section of your config.
An example with a customid of 'help': What is Ext 2.0 and how can we implement in with struts ? : struts :: Hello What is Ext 2.0 and how can we implement in with struts ? Application Servers; Content Management; CYGWIN; Database; Dev Tools; File Sharing http://www.experts-exchange.com/Programming/Open_Source/Q_23083531.htmlHOME | Construction Solutions - Drill Bit Extension:: Forces are increased at the shoulder since the weight of the power tool is You can make your own bit extension, which wil cost $1-2 for materials plus http://www.cpwrconstructionsolutions.org/masonry/solution/642/extended-drill-bit.htmlHOME |
tools: [{id:'gear'},{id:'help'}],
Then define 2 relevant css classes, x-tool-{customid} and x-tool-{customid}-over.
.x-tool-help {
background-image: url(images/help.png);
}
.x-tool-help-over {
background-image: url(images/help_over.png);
}
The dimensions of your image should 15x15, of course you should probably implement this using a sprite but I just wanted to keep the example simple.
Aaron
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |