Add Icon in Coolite.

  1. #1

    Add Icon in Coolite.

    I would like know if is possible add an icon in Icon property in source code of Coolite Toolkit?

    Thanks for attention!
  2. #2

    RE: Add Icon in Coolite.

    The .Icon property is a Enum, so I don't know of any way to add items to list, other than modify the project by adding a .png to the Coolite.Ext.Web/Build/Resources/icons/ folder.

    Once a new icon has been added to the /icons/ folder, you would need to rebuild the project using the Build Events.*


    You can also set the .IconCls property with a css class name which would define the icon.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: Add Icon in Coolite.

    Eg ExtJS icons as used in the example eplorer
    <!-- Styles for icons on treepanel -->
    <style type="text/css">
        button.collapse-all {
            background-image: url(images/collapse-all.gif) !important;
            }
        button.expand-all {
            background-image: url(images/expand-all.gif) !important;
            }
    </style>
    I am using the style in code behind
    ext.Button btnExpand = new ext.Button();
    btnExpand.Text = "Expand";
    btnExpand.IconCls = "expand-all";
    btnExpand.Listeners.Click.Handler = tree.ClientID + ".expandAll();";
    
    ext.Button btnCollapse = new ext.Button();
    btnCollapse.Text = "Collapse";
    btnCollapse.IconCls = "collapse-all";
    btnCollapse.Listeners.Click.Handler = tree.ClientID + ".collapseAll();";

Similar Threads

  1. [CLOSED] How can I use Coolite Icon in javaScript
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Apr 14, 2011, 4:44 PM
  2. Replies: 5
    Last Post: Aug 02, 2010, 8:44 AM
  3. Replies: 3
    Last Post: Jul 20, 2010, 7:48 PM
  4. Replies: 5
    Last Post: Mar 05, 2010, 3:15 PM
  5. Replies: 3
    Last Post: Oct 16, 2008, 10:25 AM

Posting Permissions