Add the ability to apply properties to the iframe
See original GitHub issueHi, I have just started to use your library to help with the Payment Request API and for this the allowpaymentrequest
property needs to be set on the iframe.
Is there a way to introduce a way of setting these properties as part the the connectToChild
method?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
<iframe>: The Inline Frame element - HTML - MDN Web Docs
Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or...
Read more >How to apply CSS property to an iframe ? - GeeksforGeeks
Approach 1: There are several techniques to apply CSS property to an iframe, as given below. We can use inline CSS for the...
Read more >Add an iframe to a model-driven app main form - Microsoft Learn
In this article · Expand Data, select Tables, open the table that you want, and then select Forms from the Data experiences area....
Read more >The ultimate guide to iframes - LogRocket Blog
Note: By default, the iframe element has a border around it. To remove it, you can use the style attribute to set the...
Read more >How to apply CSS to iframe? - html - Stack Overflow
An iframe is universally handled like a different HTML page by most browsers. If you want to apply the same stylesheet ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👎 for the @killix approach.
I think that having both an
appendTo
andiframe
option leads to a conflated API and data flow.If you do change the API, I’d recommend a functional callback approach that also addresses some of the
appendTo
use cases in a minimal but powerful API.I think the above approach would let people solve many of the “I need to do something with the iframe”, would have a minimal API, and would solve any timing concerns with iframes being unable to be modified before they’re appended to the DOM (e.g. for styling).
For reference we had to use the
appendTo
option with some class selectors like#foo iframe
.Basically, all cases when the creation/management of the iframe is managed by a component framework style (Vue, React).