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
It would be cool if this ability was also available as a standalone function:
julia> HypertextLiteral.serialize_style_attribute((width="10px", background="white")) # or a better name"width: 10px; background: white;"
I ran into this several times when working with widgets that set their initial style with HypertextLiteral (accepting style as a user input), but a later update will set the style from JS, so I need to give the new style attribute value to JS as a string.
HypertextLiteral has the ability to format a
style
attribute from a Julia Dict, Pair or NamedTuple:It would be cool if this ability was also available as a standalone function:
I ran into this several times when working with widgets that set their initial style with HypertextLiteral (accepting style as a user input), but a later update will set the style from JS, so I need to give the new style attribute value to JS as a string.
My current solution is:
The text was updated successfully, but these errors were encountered: