GenieFramework / StippleUI.jl

StippleUI is a library of reactive UI elements for Stipple.jl.
MIT License
82 stars 15 forks source link

Handle boolean values for val keyword correctly #118

Closed hhaensel closed 7 months ago

hhaensel commented 8 months ago

This PR fixes #57 by allowing supply of Bool values,

julia> radio("Bar plot", :show_bar, val = true)
"<q-radio :val=\"true\" label=\"Bar plot\" v-model=\"show_bar\"></q-radio>"

With this solution you are still allowed to write

julia> radio("Bar plot", :show_bar, val = "true")
"<q-radio val=\"true\" label=\"Bar plot\" v-model=\"show_bar\"></q-radio>"

which will attach the string "true"