HZRN.COM
welcome to my space
X
Welcome to:hzrn.com
Economics | Home Improvement | Ezines and Newsletters | Crockpot Recipes | Hardware | Cosmetics | Vans | Careers | Related articles
Search:  
NAVIGATION: Home >>
tools adding/removing
Published by: wktd 2010-03-11

  • Adding and Removing items from an Html ListBox [timstall ::
    ASP.Net makes things easy, like adding and removing items from an HTML listbox. learning misc people process sample_code silverlight style testing tools
    http://timstall.dotnetdevelopersjournal.com/adding_and_removing_i_from_an_html_listbox.htm
    HOME
    It appears to me that the tools for Panel are not so conducive to dynamic manipulation at the moment (that is adding or removing tools).

    addTool is currently marked as private, but it would be good to have methods to add (or set?) and remove Tools. It also looks like there is no checking to see if a tool already exists, maybe this is ok though, in case someone wants to reuse icons for some reason?
    NEEDSCRIPTS :: Viewing, Adding, Editing, Removing Records from MySQL ::
    NEEDSCRIPTS ::This is a web based tutorial which helps you to display the MySql Tutorials : Database Tools : Viewing, Adding, Editing, Removing Records from
    http://www.needscripts.com/Resource/33473.html
    HOME
    Free-To-Try.com - Details for Gammadyne Mailer 33.1::
    Of course, there are powerful tools for maintaining the list manually as well. Adding, removing, and changing recipients has never been easier - and the
    http://www.free-to-try.com/551
    HOME

    Anyway, the immediate use case I thought of is the pin and unpin tools. Looks confusing to me to have both at the same time, so when you pin something, the button/tool should toggle to unpin. Anyway, just posting to see if someone sees a solution easier than I do to enable dynamic addition/removal of tools.

    From panel.js:

    // private
    addTool : function(){
    if(!this[this.toolTarget]) { // no where to render tools!
    return;
    }
    if(!this.toolTemplate){
    // initialize the global tool template on first use
    var tt = new Ext.Template(
    '*


  • If you just mean the look of the tool, then you can provide yuor own styling for existing tool classes which override the default, provided icon image.


  • Ugh. :">

    Thanks Animal. Now the hidden config (http://extjs.com/deploy/dev/docs/?class=Ext.Panel&member=tools) even makes more sense to me now.

    I guess maybe there wasn't intent to take it this far, but I would have almost thought this could have been setup like a toolbar where you could add/remove items dynamically, etc.

    Hide/show is sufficient for my case though.

    Reading the docs again I have a couple of suggestions/questions.


    An array of tool button configs to be added to the header tool area. When rendered, each tool is stored as an Element referenced by a public property called tools.
    Each tool config may contain the following properties:

    id : String
    Required. The type of tool to create. Values may be


    1. Above has , but it looks like might be appropriate?
    2. If #1 is correct, my initial comments seem applicable perhaps that when the base code adds tools it should only add unique "id's" to the tools array. I guess this should/may fall completely upon the coder to provide the proper configs. In my case I was accidentally adding tools that were added through other configs.
    3. Last one. The listeners config. When I originally read that I had difficulty imagining a use case for that. Might be good to add an immensely brief example to the docs?


  • Wouldn't you create both tools at startup, but hide/show each tool as appropriate?


  • Of course Animal I was not talking about having a tool with behaviour associated (that's why I wrote 'for example').

    I will have a look on the way to override the tool class (first I have to found the good icon image if I well understood).

    After what, it will be dynamic management of hide/show the tool as mj was talking about.


  • Hi,

    is it planned to have new kind of tools in further release?

    for example an Edit tool which could be used to edit the panel content if you are admin.


  • The tools do not have any behaviour associated with them. This is clearly stated in the docs.

    You provide behaviour.





  • Microsoft Unleashes Visual Studio .NET
    IBM's iPhrase Buy Adds to WebSphere

    You are looking at:hzrn.com's tools adding/removing, click hzrn.com to home
    #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 tools adding/removing , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hzrn.com        Site made:CFZ