What is the minimal layout needed for a Genie page to work with StippleUI Components? #708
Replies: 3 comments 1 reply
-
The Stipple assets are injected by the Someone from Discord tried to write their own layout without calling |
Beta Was this translation helpful? Give feedback.
-
Its not ideal, but I've found I can accomplish what I set out to do by monkey patching the Stipple.ReactiveTools.DEFAULT_LAYOUT function to return my desired layout |
Beta Was this translation helpful? Give feedback.
-
It was meant to be pretty simple but looks like for some reason it's not. I'll take a look this week and follow up with an answer -- and maybe we can improve the API / docs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the sample tutorial for a simple page with a slider, the following displays everything properly
However, change
@page("/", ui)
to@page("/", ui, layout=path"./path/to/your/custom/layout)
and the slider is now broken/not displayed. Clearly the default layout is doing some work here to load some assets that the slider requires. I tried following the pagemacro -> Stipple.ReactiveTools.DEFAULT_LAYOUT() code but wasn't able to find where and which assets are being injected into the page. I manually included a number of assets that seemed like they might be relevant into my layout but wasn't able to get the slider to work.How can I add the necessary stock css/js assets (or even better, only the ones being used) to my new custom layout such that I can use the StippleUI/Quasar components out of the box without the default layout?
Beta Was this translation helpful? Give feedback.
All reactions