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: Icon per item
fschop
Junior Member

Posts: 2
Registered: 11/25/2002
Member Is Offline
smile.gif posted on 11/25/2002 at 09:50 PM Reply With Quote
Icon per item


Is it possible to put the icons in the ITEMS table, instead of the tpl table?

That way, I would be able to define a different icon for every entry.

Frank.
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
posted on 11/27/2002 at 11:47 AM Reply With Quote

I?m trying to do kind of what you seem to need.
The idea is that I have "classes" of entries or nodes and want to display different icons for those classes.
I?ll post how to do it, when I have finished working on it. At the first glance it is no problem. Only a few changes in the code.
If you need to have a new icon for each entry, that?s no problem too.

CU

Ulukai
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
posted on 11/27/2002 at 11:59 AM Reply With Quote
finished


Hi, I have finished the code changings. If you are interested, let me know, I could send you the whole code which makes it easier than to describe the changes line per line.
CU

Ulukai
View User's Profile View All Posts By User U2U Member
Ahmad
Newbie

Posts: 1
Registered: 12/7/2002
Member Is Offline
wink.gif posted on 12/7/2002 at 05:25 AM Reply With Quote
icon per item


Hi Ulukai,

i would appreciate it if you can send me the modified code you have made so that the tree can dispaly different icons for every item......I will even appreciate it more if you have the code to dynamically populate the tree from MS Access tables.
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
posted on 12/9/2002 at 07:26 AM Reply With Quote

No problem, I?ll send you the code in a few hours (we have some server-problems here at the moment).
I filled the tree with a result table from a SAP BAPI. Don?t know how to fill it with MS Access tables, cause I use HtmlBusiness here for solving that problem.
View User's Profile View All Posts By User U2U Member
Xande
Junior Member

Posts: 2
Registered: 12/11/2002
Member Is Offline
biggrin.gif posted on 12/11/2002 at 12:07 AM Reply With Quote

Hi Ulukai,

If you can also send me the code for using different icons for each entry I would appreciate a lot!!!

Thanx in advance,
Xande
View User's Profile View All Posts By User U2U Member
mek
Newbie

Posts: 1
Registered: 12/12/2002
Member Is Offline
posted on 12/12/2002 at 02:48 PM Reply With Quote
Hi, Ulukai


Why not publish it on this forum as an attached zip file?

/mek
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
posted on 12/13/2002 at 12:41 PM Reply With Quote

ok, It?ll be present as a zip at this place next week.
CU

Ulukai
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
cool.gif posted on 12/13/2002 at 04:43 PM Reply With Quote

Ok, here it is. I hope the documentation is alright; I made some changes after documenting it.
NOTE: You may not use the old tree-item table. Also, as I needed to fill the tree dynamically, there?s no tree_items.js coming with this zip. Have a look at the html and js files to learn how to fill the tree. (It is documented)
NOTE: There?s also a fastmctree.js coming with the zip. You may use this tree as a multiple-choice-tree.
When using the multiple-choice-tree, don?t put a link inside the tree-items-array but replace it by an Id.
To get the user-selection, simply call myTree.getSelection();
This will give you an array with the selected elements (The Ids you specified instead of links).

You may add extra-icons as a "suffix" for each tree-entry. They may link to different locations and may have different targets.

See the documentation for more details.

A last note: The icons, I use are directly taken from SAP HR/3. I?m not sure about the rights to use them. Please replace them by your own.

Have fun:)

Ulukai

Attachment: export.ZIP (12.94kb)
This file has been downloaded 903 times
View User's Profile View All Posts By User U2U Member
Xande
Junior Member

Posts: 2
Registered: 12/11/2002
Member Is Offline
biggrin.gif posted on 12/15/2002 at 01:05 PM Reply With Quote
Thanx a lot!


Nice work! Another idea for a cool implementation is to have another parameter (boolean - true/false) on each node to specify if you want that node to be open or closed by default!

Thanx again,
Xande
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   
Tigra Tree Menu PRO
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