How can I add items to a Sencha Tab Panel in runtime. I used add() function but it is not working?
Thanks
Arun A G
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Thanks to all, those who replied and those who viewed .
The problem is solved with the add() method itself. Actually I was using it in wrong format ie
myTab.items.add(newItem);
You just have call the method add() within myTab’s scope. ie
myTab.add(newItem);