Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom Expand/Collapse buttons (Read 1504 times)
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
Custom Expand/Collapse buttons
Aug 17th, 2015 at 6:53am
Print Post  
Hi,

How to replace the existing [+] or [-] icon for expand/collapse, with custom icons?

Also, can we place the icon on top-right corner of the node(which should expand/collapse)?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Expand/Collapse buttons
Reply #1 - Aug 17th, 2015 at 9:08am
Print Post  
Hi,

You can change the button position as shown here:
http://mindfusion.eu/Forum/YaBB.pl?num=1359379520/4#4

Drawing a bitmap image looks like this:

Code
Select All
ExpandButton.prototype.updateContent = function ()
{
	var localRect = this.getRect();
	localRect.x = localRect.y = 0;
	var image = new MindFusion.Drawing.Image(localRect);
	image.image.src = "icon1.png";
	image.loaded = true;
	this.content.push(image);
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint