5 messages in com.googlegroups.google-mashup-editorRe: using Gadget Tabs API to access g...
FromSent OnAttachments
jackAtFloridata04 Dec 2007 15:54 
Jason05 Dec 2007 14:40 
jackAtFloridata09 Dec 2007 18:08 
Jason10 Dec 2007 14:20 
jackAtFloridata10 Dec 2007 15:25 
Subject:Re: using Gadget Tabs API to access gm:tabs
From:jackAtFloridata (Flor@gmail.com)
Date:12/10/2007 03:25:42 PM
List:com.googlegroups.google-mashup-editor

hi jason - this is just what I needed ! Now I can publish my mashup this week - thanks! jack

On Dec 10, 5:20 pm, Jason <gmej@google.com> wrote:

Hi jack. GME already enables you to set the selected section programmatically, although its ID is used instead of its index. Check out the following demo to see this in action:

http://demo-changeselectedtab.googlemashups.com/

I'll file requests for the other methods. Thanks for the suggestions!

- Jason

On Dec 9, 6:08 pm, jackAtFloridata <Flor@gmail.com> wrote:

The only "gottahave" function that i need to execute my UI the way I like is: setSelectedTab(tabindex) which gives focus to the indicated Tab and display its content in the same manner as a user "click" event.

other "nicetohave" functions would be: getSelectedTab() - returns currently displayed Tab displayTabs(display) (renders a set of Tab objects on the display) removeTab(tabindex)

Functions to easily get and set the tab titles would also be nice! thanks, jack

On Dec 5, 5:41 pm, Jason <gmej@google.com> wrote:

Hi jack. I just replied to your questions from last week, which were similar. I'm sorry again for not answering sooner.

Although you could conceivably use Google Gadgets' UI libraries within GME, I recommend you stick with gm:tabs, gm:section, etc. Aside from being able to dynamically select tabs, which GME's JavaScript API does allow for, what other tab functions are you missing?

- Jason

On Dec 4, 3:54 pm, jackAtFloridata <Flor@gmail.com> wrote:

Can the Gadget Tabs API described on this
page:http://code.google.com/apis/gadgets/docs/reference.html#Ref_Tabs

...be used to access the objects created by the GME's <gm:tabs> and related... ?

...that would be really nice! ...if not is it possible to invoke the click() method on one of the objects to simulate a user mouseclick in order to display a hidden tab ? It looks like the styles of the container objects could be modified by the script to accomplish this - but this seems like the