aimaraJS icon indicating copy to clipboard operation
aimaraJS copied to clipboard

how to set link

Open haohonglong opened this issue 10 years ago • 2 comments

i want set a link how to do?

haohonglong avatar Nov 13 '15 06:11 haohonglong

You want to create tree nodes as links?

If so, then all you have to do is create nodes with html tags instead of regular text for the Text parameter.

For example:

node1 = tree.createNode('<a href="http://www.google.com">Link to google</a>',false,'images/star.png',null,null,null);

You can add a class to this tag and style it.

rafaelthca avatar Nov 16 '15 18:11 rafaelthca

thank you very mach! but If the plugin is in the public folder of the project, how do you change the path of the icon in your plugin?

haohonglong avatar Nov 17 '15 02:11 haohonglong