You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm loving Flame and was looking for a way to mount a flame application straight on a DOMNode, Web.DOM.Internal.Types.Element or something similar. The docs show that this is not possible, only through a QuerySelector can you mount a Flame application. However, I already have a node without anything to select on with a QuerySelector.
This makes it quite awkward to mount the application to. My current approach is:
Generate a unique identifier
Assign it to the id of the node
Concat "#" with the the id
Pass the result to the QuerySelector constructor
Pass the QuerySelector to the mount function
I have already taken a look at the source of the current Flame.Application.EffectList.mount function, it calls the run function which takes a Node as one of its parameters. However, the run function is not exposed from the module.
Would you be open to consider exposing an additional mount function that takes some sort of Node?
Thanks in advance!
Kind regards.
The text was updated successfully, but these errors were encountered:
Well, I'm working in the context of a plugin for Obsidian. The API for a modal for example gives back an HTMLElement. Looking at the DOM when a modal is opened shows this:
It looks like there is a class .modal-content I can select on. I'm not sure if that's the most reliable way to select it however, multiple modals can be open at the same time.
Hi, I'm loving Flame and was looking for a way to mount a flame application straight on a
DOMNode
,Web.DOM.Internal.Types.Element
or something similar. The docs show that this is not possible, only through aQuerySelector
can you mount a Flame application. However, I already have a node without anything to select on with aQuerySelector
.This makes it quite awkward to mount the application to. My current approach is:
id
of the node"#"
with the the idQuerySelector
constructorQuerySelector
to the mount functionI have already taken a look at the source of the current
Flame.Application.EffectList.mount
function, it calls therun
function which takes aNode
as one of its parameters. However, therun
function is not exposed from the module.Would you be open to consider exposing an additional mount function that takes some sort of
Node
?Thanks in advance!
Kind regards.
The text was updated successfully, but these errors were encountered: