FastUI icon indicating copy to clipboard operation
FastUI copied to clipboard

Support srcdoc attribute in iframe component.

Open AaronNHart opened this issue 1 year ago • 1 comments

Do you think it would be reasonable to add srcdoc attribute support to the iframe component? This would enable embedding arbitrary html. The sandbox attribute might go along with this in order to enable scripts.

For context, I have been looking into doing some data visualisation in FastUI but this could also be useful for embedding reports, for example from MultiQC.

# Use it in FastUI like:
c.Iframe(srcdoc='<p>FastUI is neat</p>', src='https://pydantic.dev', width='100%', height=400),

AaronNHart avatar Jan 14 '24 10:01 AaronNHart

sounds good to me, PR welcome.

samuelcolvin avatar Feb 09 '24 06:02 samuelcolvin