View Full Version : Tabpanel - title panels with special characters "(/\_."

1 Oct 2012, 6:40 PM
Hi guys.
Am I able to create tabs on a tabpanel with titles containing special characteres like slashes and points?
If I try to create a tab with the title 136/B, I get the follow error:

Ext.Error: Invalid ComponentQuery selector: "/B"

1 Oct 2012, 10:50 PM
What framework/version you are using? I have no problem adding tab with name "136/B" in ExtJS 4.1.1

2 Oct 2012, 6:52 AM
Ive just identified the problem but not the solution.
this is my function:
windowNovaIe: function(ie){
var tabIe = Ext.getCmp('abainstrucao');
var tabName = '#maintab' + ie;
var newTab = tabIe.down(tabName);
when I try to get the tabName on down function, it shows me the error.
But it happens only with special characters. I typed: 124/B

Invalid ComponentQuery selector: "/B"

2 Oct 2012, 7:18 AM
Now it makes sense :D
I think you'll need to modify your query. For instance
var newTab = tabIe.down('[title="' + ie + '"]');
or something like that

2 Oct 2012, 11:07 AM
Thank you :D

2 Oct 2012, 11:32 AM
Great! I'm glad I was able to help you