Search code examples
extjsextjs4extjs4.1extjs4.2

How to create tabs dynamically in extjs?


I am new to extjs. I want to create tabs in my panel, based on a number generated from dataBase (consider the value is stored in 'numOfTabs' which is fetched from dataBase and available in JS).

I don't want to use any button event to generate tabs, but on page load itself I need to view tabs.

How can I create 'n' tabs in my panel, where 'n' is the value in numOfTabs ?

Using extjs4.2.2


Solution

  • I got the answer from the below link

    http://docs.sencha.com/extjs/4.2.4/extjs-build/examples/tabs/tabs-adv.js