Closed emmaccode closed 7 months ago
I was thinking maybe the Component constructor should be able to take style as an argument and have toolips process such things. For example, I can provide a Vector{Pair} here...
Component
Vector{Pair}
julia> mydiv = div("mydiv", style = ["color" => "blue"]) Component{:div}("mydiv", Dict{Any, Any}( :children => Servable[], :style => ["color" => "blue"]), Servable[], "div")
So we could simply have this be another special key which will turn this into a style string!
I was thinking maybe the
Component
constructor should be able to take style as an argument and have toolips process such things. For example, I can provide aVector{Pair}
here...So we could simply have this be another special key which will turn this into a style string!