Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dynamically add tabs to oj-switcher

3621024Feb 20 2020 — edited Mar 6 2020

I have a requirement to add dynamic tabs. Each tab will contain a text area and an oj-data-grid to display results. I'm using oj-tab-bar to display the tabs and oj-switcher to display the contents of the tab. When a user adds a new tab I'm dynamically creating a new div element and adding it to the oj-switcher.

My Question- How to add oj-data-grid dynamically to each newly created tabs? If we add oj-data-grid dynamically then how to map the data of the selected tab with the content from the textarea.

Comments
Post Details
Added on Feb 20 2020
4 comments
328 views