Tying styles to package generated modal?
Short of hardcoding a <link> into the blade template, is there any way to 'register' or otherwise include a specific stylesheet url into a widget or modal that in inside of a composer package?
I'm building a tool to help me generate XML for a print-on-demand service and one of the pieces is a package that converts text into an SVG file. I converted a number of fonts to SVG Fonts and use these to generate the final SVG of customized text.
I would like to be able to upload and enable/disable the fonts used by the tool which means that if I want to 'see' the way the font looks when selecting it in my modal form, I need to code-generate css with @font-face definitions for the SVG fonts themselves.
I see examples of 'registering' CSS and JS files in the main Service Provider, but I only need these to be loaded when the modal itself is included in the page.
0 Replies