-
-
Notifications
You must be signed in to change notification settings - Fork 328
-
I dont want to create a div that holds the head that holds the css, i would like a way for me to automatically put it in the head so everything loads normally.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 3 replies
-
Related to comments in #832
Beta Was this translation helpful? Give feedback.
All reactions
-
i just looked through that and it doesnt seem to be what im looking for. I'm trying to preset the head to contain a link tag to my css
Beta Was this translation helpful? Give feedback.
All reactions
-
TLDR: Populating the HTML <head> is currently not possible within IDOM's python interface.
It is however, possible using the javascript components interface and using react-helmet.
Beta Was this translation helpful? Give feedback.
All reactions
-
Also, related to #725
Beta Was this translation helpful? Give feedback.
All reactions
-
This has been requested a number of times. While certain things can be done by using script() to change the page title after the initial load, this is sub-optimal. I've begun working on a solution to this here: #835
The approach will be to allow users to configure the <head/> element with a head option for each of the built-in backend at startup. The interface will look something like:
from starlette import Starlette from idom import component, html from idom.backend.starlette import configure, Options app = Starlette() @component def example_app(): ... configure(app, example_app, Options(head=html.head(...)))
Beta Was this translation helpful? Give feedback.