Board Logo

Default Icon for all views
dcane - 9/8/2004 at 05:02 PM

Hey all -

I am generating a rather large tree and need to override the icons for certain nodes and leaves.

I know I can do this by overriding the i4,i8, etc... But this gets huge (HTML).

I can live with not having icon-effects at all. How can i set it up so that there is just an "icon" for a node or leaf, and no effects -- therefor not having to supply which icon to use in effects at all.


Daniel Cane
[email protected]

rock - 9/9/2004 at 09:06 AM

First of all you don't need to setup different icons in all these items scope settings. You could define few icons sets via array and assign the array to items scope settings. Eg:
var iconset1 = {'i4':'myicon/icon1_4.gif', 'i8':'myicon/icon1_8.gif', ...};
var iconsetN = {'i4':'myicon/iconN_4.gif', 'i8':'myicon/iconN_8.gif', ...};



This way is more compact.

To disable mouseover/mouseout and other events you could handle them via open API and return false in event handler functions.

dcane - 9/13/2004 at 01:29 PM

Rock. Both solutions would work well. I've implimented the array solution to conserve space. Where can I find more info on overriding the public API to not change images onMouseOver, etc?

Thanks for the help and prompt response!

rock - 9/13/2004 at 02:25 PM

You could find more info about the open API in the [url=""]Product Documentation[/url] and in the demo 4 from your download package.

Back to forum: