Set Panel Icon Client Side

  1. #1

    Set Panel Icon Client Side




    is there something like setTitle to set an icon for a panle, etc. client side?
  2. #2

    RE: Set Panel Icon Client Side

    Hi Tbaseflug,

    When the .Icon property is set, we create a css class specific for that icon. The css class is used by the widgets/controls to render the proper icon.*


    On the client, if you wish to change the icon, you can use the .setIconClass() function.


    Example


    Panel1.setIconClass('my-icon');

    In your .css file you would define a new class like the following.


    Example


    .my-icon{background-image:url(/images/my-icon.png) !important;}

    Docs...
    http://extjs.com/deploy/dev/docs/?cl...r=setIconClass



    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: Set Panel Icon Client Side

    Worked beautifully! Thanks!

Similar Threads

  1. Ext.net CardLayout Panel Client Side Rotation
    By NickBin in forum Examples and Extras
    Replies: 2
    Last Post: Aug 19, 2014, 2:14 AM
  2. Disabling MenuItems Icon at client side
    By Dominik in forum 1.x Help
    Replies: 20
    Last Post: Jun 28, 2011, 10:37 AM
  3. Problem in Enable panel on client side
    By Rupesh in forum 1.x Help
    Replies: 1
    Last Post: Dec 15, 2010, 2:44 PM
  4. [CLOSED] [1.0] setting famfamfam Icon from client side
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2010, 11:03 AM
  5. Auto Resize Panel in ViewPort on client-side Panel.AutoLoad
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 03, 2008, 3:27 PM

Posting Permissions