[CLOSED] Custom type tool

  1. #1

    [CLOSED] Custom type tool

    I am trying to put a custom icon in a header, using tool and custom type, but i am getting another icon, close icon. can you help me.

     
    <ext:Tool CustomType="icon-expand-all" ></ext:Tool>
     
    Styles
    .icon-expand-all  { background-image: url(../../Common/Images/expand-all.gif) !important; }
    Last edited by Daniil; Mar 04, 2011 at 4:27 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Regarding, ExtJS docs
    http://dev.sencha.com/deploy/dev/doc...xt.Panel-tools

    Your type will be used with "x-tool-" prefix
    So, you have to define the following css selector
    .x-tool-icon-expand-all {...}
    If you need 'over' functionality then define addtional rule with '-over' suffix
    .x-tool-icon-expand-all-over {...}
  3. #3
    Thanks Vladimir
  4. #4

    Adding button

    Quote Originally Posted by Vladimir View Post
    Hi,

    Regarding, ExtJS docs
    http://dev.sencha.com/deploy/dev/doc...xt.Panel-tools

    Your type will be used with "x-tool-" prefix
    So, you have to define the following css selector
    .x-tool-icon-expand-all {...}
    If you need 'over' functionality then define addtional rule with '-over' suffix
    .x-tool-icon-expand-all-over {...}
    Is there a way adding a button???
  5. #5
    Hi,

    Unfortunately, no. Only Tools.
  6. #6
    Quote Originally Posted by Daniil View Post
    Hi,

    Unfortunately, no. Only Tools.
    Thanks Daniil .The senario can be easily made by panel top bar adding label and the buttons on right. The only difference would be that the style of top bar would be different .See pictures. How can I change the style to resemble exact panel header looking
    Click image for larger version. 

Name:	header.JPG 
Views:	162 
Size:	15.6 KB 
ID:	4405
  7. #7
    Quote Originally Posted by zeus View Post
    Thanks Daniil .The senario can be easily made by panel top bar adding label and the buttons on right. The only difference would be that the style of top bar would be different .See pictures. How can I change the style to resemble exact panel header looking
    Click image for larger version. 

Name:	header.JPG 
Views:	162 
Size:	15.6 KB 
ID:	4405
    Well I found some work around but I need confirmation if this will not create any problems
     <ext:Toolbar runat ="server" Cls ="x-panel-header"  >
  8. #8
    Confirm, it should not cause any problems.

Similar Threads

  1. Replies: 2
    Last Post: Jan 09, 2012, 7:18 AM
  2. [CLOSED] Tool Tip Custom Height and Width
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Nov 21, 2011, 6:12 PM
  3. Replies: 0
    Last Post: May 03, 2011, 12:13 PM
  4. Replies: 4
    Last Post: May 27, 2010, 6:28 PM
  5. [CLOSED] Custom Panel Tool?
    By wazige in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 23, 2009, 11:01 AM

Tags for this Thread

Posting Permissions