Forum Stats

  • 3,741,218 Users
  • 2,248,393 Discussions
  • 7,861,681 Comments

Discussions

How to create Oj-Components dynamically?

User_INPR6
User_INPR6 Member Posts: 7 Green Ribbon

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

Tagged:

Best Answer

Answers

Sign In or Register to comment.