EasyUI Forum
September 14, 2025, 03:42:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: my own icon in the top bar of window (panel>)  (Read 6422 times)
essco
Newbie
*
Posts: 9


View Profile Email
« on: October 16, 2014, 05:30:00 PM »

Hello coders....

Anyone got any idea on how to place an icon in the header bar of a window.  I can get one there if I make it a 16x16 png and place its address into the icon.css document.  This way does not allow me to "easily" build a page on the fly.  Any help would be appreciated.

Charlie
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: October 16, 2014, 06:43:10 PM »

You can find the '.panel-tool' to get the tools container. Append your icons to it. Please try this code:
Code:
var tool = $('#w').window('header').find('.panel-tool');
var a = $('<a href="javascript:void(0)" class="panel-tool-a"></a>').prependTo(tool);
var img = $('<img></img>').appendTo(a);
img.attr('src', '../../themes/icons/help.png');
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!