POLALA.COM
welcome to my space
X
Welcome to:polala.com
Search:  
NAVIGATION: Home >>

[SOLVED Ext 2.0] Custom Tool

Published by: jack 2009-01-09
  • 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.pdf
    HOME

    -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.html
    HOME
    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.html
    HOME

    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
    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED Ext 2.0] Custom Tool , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 polala.com        Site made:CFZ