Using frame prop
Falsen opened this issue · comments
Albin Falsen Lindqivst commented
Hello I am trying to use the "frame" prop without any success.
Frame must be of the type HTMLDocument but how can I generate an HTMLDocument inside render()? I was going to use document.getElementById, but I quickly realized that isn't an option since the HTML isn't yet rendered on the page in the render() function. So how can I create an HTMLElement inside the render function itself?
Could you please provide an example
Kabir Sarin commented
@Falsen I don't understand your problem. You can pass a frame
that is any html element or, the entire document. Just create a div somewhere, and pass that as the frame
prop.