extjs - Trying to get class/id value on tabbed Panel tab section -



extjs - Trying to get class/id value on tabbed Panel tab section -

for test automation purposes, need class/id value on tab bit (whatever phone call it..) in tabbed pane.

i have tried next aaa,bbb,ccc , ddd, , none of these appear in class in dom level.

var panel1 = ext.create('ext.panel.panel'); panel1.cls = 'aaa' panel1.itemcls = 'bbbb' var panel2 = ext.create('ext.panel.panel'); ext.create('ext.tab.panel', { cls:'ccc', itemcls:'ddd', renderto: document.body, items: [panel1,panel2] } );

i know somehow possible. have idea??

http://jsfiddle.net/gqulg/9/

ok figured out. need set tabconfig object on panel or container goes within tabbed panel.

var panel1 = ext.create('ext.panel.panel'); panel1.tabconfig = { cls: 'mytab' };

the tabconfig object holds cls (class values) populate tabs on top.

extjs extjs4.2

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -