I was using the tools properti that the panels and the windows have but there is only a few types of tools that can be use, I want know if there is a way to create more of these tools
thanks
ie:
.x-tool-test{
background:transparent url(some/images/my-tool-sprites.gif) no-repeat;
background-position:0 -90px;
}
.x-tool-test-over{
background:transparent url(some/images/my-tool-sprites.gif) no-repeat;
background-position:-15px -90px;
}
Still, would the dev team consider creating a more flexible solution to achieve this that would not break on a complete Ext update, i.e. including an overwrite of image resources?
Just like passing a "toolCls" parameter to pull a custom icon?
Its easy to create your own if you can create the sprite graphics and add them to the tool sprite image (/resources/images/default/panel/tool-sprites.gif) - there is a template in the same folder to get you started "tool-sprite-tpl.gif".
Just pick a name for your tool...
tools: [{
id: 'test'
}]
and create the styles needed using the id you picked...
.x-tool-test{background-position:0 -XXpx;}
.x-tool-test-over{background-position:-15px -XXpx;}
Change the XXpx to the Y location that your image falls on in the tool sprite image.
#If you have any other info about this subject , Please add it free.# |
