klipkop
Posts: 16
|
Posted: 09/23/2008, 7:36 AM |
|
Can anybody point me in the right direction - My Java knowledge is limited to 3 cups a day....:
I am using YUI TabView tabs to create 3 tabs with panels in them. Problem is that the Caption (Tabname) is hard coded using the "features" > "Caption" field. In the Java script of the html I can see the following:
//YahooTabbedView Start @70-B717E189 function
Panel1YahooTabbedView_start() {
YahooTabbedView = new YAHOO.widget.TabView();
var Panel2_tab = new YAHOO.widget.Tab({
label: "Condition 2",
active: true,
contentEl: document.getElementById
("Panel1Panel2")
I want the label: "Condition2" to get its value from either a control or a variable that I declare.
I see the API docs on the YUI pages have a configuration attribute called :
labelEl (HTMLElement) The element that contains the Tab's label.
Is this something I can use?
Will appreciate any answer..
Andre
|