|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
setEnable on TabItemsHi Cyril,
It seems that the setEnable function's behaviour concerning tabItems has changed. Calling the setEnable function on an active (selected) tab changes the tab's style to not selected. Here's an example of what I'm telling: myFolder = new rialto.widget.TabFolder({name:'myFolder',top:0,left:0,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); adminFolder = myFolder.addTabItem('Admin',true); auditolder = myFolder.addTabItem('Audit',true); myFolder.activeTab(0); adminFolder.setEnable(true); the adminFolder's style should still be 'active'. Fred |
|
|
Re: setEnable on TabItemsFred,
It is because you ask me for a specific style for disable tab (http://tech.groups.yahoo.com/group/rialto-dev/message/1641). As i mention i add "Disa" classname. By default the style is the unselect tab but you can change it in your css. By the way this style doesn't matter if the tab is selected or not. Maybe i missunderstood you first querry. Cyril --- In rialto-dev@..., "frederic_viollet" <frederic.viollet@...> wrote: > > Hi Cyril, > > It seems that the setEnable function's behaviour concerning tabItems > has changed. > Calling the setEnable function on an active (selected) tab changes the > tab's style to not selected. > Here's an example of what I'm telling: > > myFolder = new > > adminFolder = myFolder.addTabItem('Admin',true); > auditolder = myFolder.addTabItem('Audit',true); > myFolder.activeTab(0); > adminFolder.setEnable(true); > > the adminFolder's style should still be 'active'. > > Fred > |
|
|
Re: setEnable on TabItems--- In rialto-dev@..., "Cyril Balit" <cbalit@...> wrote:
> > Fred, > > It is because you ask me for a specific style for disable tab > (http://tech.groups.yahoo.com/group/rialto-dev/message/1641). > As i mention i add "Disa" classname. By default the style is the > unselect tab but you can change it in your css. By the way this style > doesn't matter if the tab is selected or not. > > Maybe i missunderstood you first querry. I have overloaded the "Disa" classname and it works great. But the problem it not here I think. The problem I am mentioning here is: -select a tabitem. The tabItem takes the "On" style. This is correct. -call setEnable(true) on the tabItem. Its' style becomes "Off". Why does it not remain "On"? Please try the code I sent in the previous message. Then try commenting the "adminFolder.setEnable(true);" part. You'll see that in the second case the tabItem is "On" whereas in the first case the tabItem is set to "Off" (it shouldn't). Thanks Fred > Cyril > > --- In rialto-dev@..., "frederic_viollet" > <frederic.viollet@> wrote: > > > > Hi Cyril, > > > > It seems that the setEnable function's behaviour concerning tabItems > > has changed. > > Calling the setEnable function on an active (selected) tab changes the > > tab's style to not selected. > > Here's an example of what I'm telling: > > > > myFolder = new > > > > > adminFolder = myFolder.addTabItem('Admin',true); > > auditolder = myFolder.addTabItem('Audit',true); > > myFolder.activeTab(0); > > adminFolder.setEnable(true); > > > > the adminFolder's style should still be 'active'. > > > > Fred > > > |
|
|
Re: setEnable on TabItemsOk fred,
I understand. I fixed it Cyril --- In rialto-dev@..., "frederic_viollet" <frederic.viollet@...> wrote: > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > Fred, > > > > It is because you ask me for a specific style for disable tab > > (http://tech.groups.yahoo.com/group/rialto-dev/message/1641). > > As i mention i add "Disa" classname. By default the style is the > > unselect tab but you can change it in your css. By the way this style > > doesn't matter if the tab is selected or not. > > > > Maybe i missunderstood you first querry. > > I have overloaded the "Disa" classname and it works great. But the > problem it not here I think. > The problem I am mentioning here is: > -select a tabitem. The tabItem takes the "On" style. This is correct. > -call setEnable(true) on the tabItem. Its' style becomes "Off". Why > does it not remain "On"? > > Please try the code I sent in the previous message. Then try > commenting the "adminFolder.setEnable(true);" part. You'll see that in > the second case the tabItem is "On" whereas in the first case the > tabItem is set to "Off" (it shouldn't). > > Thanks > Fred > > > Cyril > > > > --- In rialto-dev@..., "frederic_viollet" > > <frederic.viollet@> wrote: > > > > > > Hi Cyril, > > > > > > It seems that the setEnable function's behaviour concerning tabItems > > > has changed. > > > Calling the setEnable function on an active (selected) tab > > > tab's style to not selected. > > > Here's an example of what I'm telling: > > > > > > myFolder = new > > > > > > rialto.widget.TabFolder({name:'myFolder',top:0,left:0,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > adminFolder = myFolder.addTabItem('Admin',true); > > > auditolder = myFolder.addTabItem('Audit',true); > > > myFolder.activeTab(0); > > > adminFolder.setEnable(true); > > > > > > the adminFolder's style should still be 'active'. > > > > > > Fred > > > > > > |
| Free Forum Powered by Nabble | Forum Help |