Skip to main content
Known Participant
June 28, 2019
Answered

Question about components

  • June 28, 2019
  • 2 replies
  • 317 views

How to create a component dinamically in javascript?

This topic has been closed for replies.
Correct answer kglad

you can use removeChild() and addChild() (or the visible property) to dynamically control the 'appearance' of an existing component.

2 replies

Known Participant
July 2, 2019

I don't speak english very well... My problem is:

How to put a component in a layer dinamically and no only with: canvas.parentNode ?

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 2, 2019

you can use removeChild() and addChild() (or the visible property) to dynamically control the 'appearance' of an existing component.

kglad
Community Expert
Community Expert
June 29, 2019

i don't think you can do that.