Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: styles and substituting +-
mhunter
Junior Member

Posts: 6
Registered: 8/10/2005
Member Is Offline
posted on 8/10/2005 at 09:47 PM Reply With Quote
styles and substituting +-


Hello

I have been playing around with tree menu free but believe I may need tree menu Pro for my site. Will I be able to substitute the + and - with other images and styles that will affect the link instead? In other words instead of:

+Home can I sub the image ' + ' AND the link Home so that when clicked it will expand AND link to whatever page?

Hope this makes sense. I'll also need the usual active or selected styles too - but I think thats built into the free version...although not that intuitively. Is the pro version easier to customize?

Thanks for any imput
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/11/2005 at 09:48 PM Reply With Quote

This can be implemented by either modifying the core code of free version or using the event handlers and API in Tigra Tree Menu PRO.
View User's Profile View All Posts By User U2U Member
mhunter
Junior Member

Posts: 6
Registered: 8/10/2005
Member Is Offline
posted on 8/12/2005 at 08:47 PM Reply With Quote

Can you point me in down the right path to edit the free version? I will try that first since I am not proficient with event handlers, although I do have the PRO version as well

Thanks
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/13/2005 at 03:59 AM Reply With Quote

You can put the +/- icon, item icon and item text in the same anchor tag and handle onclick event the way you want (open node, redirect browser etc).

Note that it take much more skills to modify the core script code than add event handlers. Additionally the handlers is documented feature and we provide support with that while with custom changes you're on your own.
View User's Profile View All Posts By User U2U Member
mhunter
Junior Member

Posts: 6
Registered: 8/10/2005
Member Is Offline
posted on 8/15/2005 at 08:14 PM Reply With Quote

Hello

Can you possibly forward an example of how to use the event handler in Tree PRO to accomplish this?

I have looked over the documentation but am not sure how to proceed with substituting the + and - for the link node.

Thanks for any advice
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/15/2005 at 11:40 PM Reply With Quote

You'll need to hook your own javascript function to onItemOpen which fired when you use +/- icon. In that function you call method select which opens the link and then return true which executes the standard handler for the event.

You can find information about events at:
http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#events

Also see the samples of events and API usage in the distribution package.
View User's Profile View All Posts By User U2U Member
mhunter
Junior Member

Posts: 6
Registered: 8/10/2005
Member Is Offline
posted on 8/18/2005 at 03:16 PM Reply With Quote

Ok - this is very interesting. I found a handler useage in demo 4 - thanks. I will have to figure out or find the appropriate javascript.

One question - What is the code for the +/-. I mean, what is the default. I'm assuming onItemOpen has some default code that is over ridden when explicitly defined in tree_tpl...??? Could I get some hints on how mine should look from this???

Thanks much
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/18/2005 at 10:46 PM Reply With Quote

By default the code toggles open/closed state of the tree item. This handler will called when you return true from your custom handler attached to onItemOpen event.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004