FastUI
FastUI copied to clipboard
Custom script injection.
External script tags like Google Analytics, Adsense etc other tags require to inject on html page. How can we handle this? Currently we don't have any way to handle this thing.
In my opinion, we can create some additional components to handle each specific tags. Let me know @samuelcolvin, if anything else we can perform for this task.
You can override the prebuilt_html method and add your custom html
Overlaps with https://github.com/pydantic/FastUI/issues/19#issuecomment-1847059980.
I think we should add:
- support for adding more scripts in the
prebuilt_htmlmethod as suggested by @shroominic - a
RawHtmlcomponent that let's you both render some raw HTML and execute arbitrary JS, e.g. you could call a method exported by the scripts you loaded viaprebuilt_html