Results 1 to 2 of 2

Thread: [SOLVED] My own Icon in Tab-Zimlet?

  1. #1
    reinhard is offline Trained Alumni
    Join Date
    Feb 2009
    Location
    Vienna, Austria
    Posts
    86
    Rep Power
    6

    Default [SOLVED] My own Icon in Tab-Zimlet?

    I just startet with zimlets and wonder, how to change the zimbraIcon to an own Icon in a tab-app:

    Code:
    this._simpleAppName = this.createApp("Tab Name", "zimbraIcon", "ToolTip");
    How do I define the icon in the Zimlet?
    Code:
                         <\***/>
    Reinhard             ( . . )
    -------------------ooO--U--Ooo----

  2. #2
    reinhard is offline Trained Alumni
    Join Date
    Feb 2009
    Location
    Vienna, Austria
    Posts
    86
    Rep Power
    6

    Default

    I solved it. Here is, how it works:

    1.) create a directory "images" in the same directory of the .js and .xml-File
    2.) put a jpg with the icon (16x16 Pixel) in the "images"-directory
    3.) create a .css in the same directory of the .js and .xml-File:
    Code:
    .ImgWTV-panelIcon {
      background: url("images/wtv.jpg") no-repeat 0 0;
      width: 16px;
      height: 16px;
      overflow: hidden;
    }
    4.) add two lines to the .xml
    Code:
    	<includeCSS>info_wien_helpdesk.css</includeCSS>
    	<resource>wtv.jpg</resource>
    5.) call the tab in the .js with:
    Code:
    info_wien_helpdesk_HandlerObject.prototype.init =
    function() {
    	this._simpleAppName = this.createApp("Helpdesk", "WTV-panelIcon", "Heldesk Online-Formular");
    };
    Code:
                         <\***/>
    Reinhard             ( . . )
    -------------------ooO--U--Ooo----

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 09-26-2010, 10:02 PM
  2. Replies: 6
    Last Post: 03-05-2010, 01:13 AM
  3. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  4. Replies: 0
    Last Post: 09-11-2009, 04:41 AM
  5. Samba and POSIX undeploy problem
    By catnipper in forum Zimlets
    Replies: 0
    Last Post: 09-02-2009, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •