PDA

View Full Version : [CLOSED] Custom Tool



RCM
Nov 02, 2012, 1:28 PM
Hi,

I am trying to add a custom tool to my panel. The icon is however defaulting to the default closed(x) icon. see smaple below, please advise.




<ext:Tool ID="buttonr" runat="server" Handler="" CustomType="x-tool-icon-export"
ToolTip="tool" />


.x-tool-icon-export{
background-image:url(/content/images/16x16/export16.png) ! important;
}

Daniil
Nov 02, 2012, 2:23 PM
Hi @RCM,

A prefix "x-tool-" is added automatically. So, you only need a custom tool name.

Example

<ext:Panel runat="server">
<Tools>
<ext:Tool CustomType="custom-tool" />
</Tools>
</ext:Panel>


.x-tool-custom-tool {
background-image: url(resources/images/test.png) !important;
}