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!

How to create Oj-Components dynamically?

User_INPR6Jun 7 2021

Hey there,
so i want to create a Oj-Input-Text and my Code looks like this:

<oj-button on-oj-action="[[addinput]]">Add</oj-button>
var ojinput = document.createElement('oj-input-text');

  self.addinput = function() {
    
    document.getElementById('container').appendChild(ojinput);
};

I dont get an error when running this, but but no element is displayed. What do I have to do to display an Oj input?
Thank you

This post has been answered by John JB Brock-Oracle on Jun 7 2021
Jump to Answer
Comments
Post Details
Added on Jun 7 2021
4 comments
463 views