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: Menu object structure / finding width
jollygreenfat
Newbie

Posts: 1
Registered: 6/1/2007
Member Is Offline
posted on 6/1/2007 at 03:11 PM Reply With Quote
Menu object structure / finding width


I have a (working) menu on my page created via:

var MainMenu = new menu (MENU_ITEMS, MENU_TPL, {'frames':[[]]});

What I can't find a clear answer on is the structure of a "menu" object -- in other words, what are the member variables / function I can access via "MainMenu.xxx"? I've looked through menu.js, but it's going to be very time-consuming to try to decipher it all. Specifically, I'm trying to figure out the menu's overall width (even being able to determine the width of a top-level item would be better than nothing -- and I'm not talking via the css).
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 6/1/2007 at 05:12 PM Reply With Quote

There is no publicly accessible, documented API for that. Since all the sizes are defined in the menu's configuration you call pull that information from MENU_ITEMS and MENU_TPL structures (which you know format of).
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Tigra Menu
Product Demonstrations Live Demos:
Traditional Blue
White Steps
Inner HTML
All Together
Frames Targeting
Free Download Free Download
Free Download Menu Builders
Online Builder
Builder for Windows
Product Documentation Documentation:
Documenation Page
Change Log
Menus Comparison Table
Support Forum Support Forum
 
Tigra Menu PRO
Product Demonstrations Live Demos
Alignment & Multimenus
Unlimited Depth
Item sizing and positioning
Inner HTML
Frames, Targeting
Static Positioning
Free Download Menu Builders
Online Builder
Product Documentation Documentation
Documenation Page
Tigra Menu PRO FAQ
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 
Product Page Tigra Menu GOLD
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
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