How do I setup a btngroup
in StippleUI to dynamically change the buttons (their functions and labels) it contains? I want the buttons to depend on some input (i.e. one of the model’s parameters)?
Politely pinging @hhaensel @essenciary
How do I setup a btngroup
in StippleUI to dynamically change the buttons (their functions and labels) it contains? I want the buttons to depend on some input (i.e. one of the model’s parameters)?
Politely pinging @hhaensel @essenciary
Not sure whether that was addressed in Github, but if anyone is interested, here’s the solution
julia
julia> btn(label, @click(:mybutton))
"<q-btn label v-on:click=\"mybutton = true\"><label></label></q-btn>"
julia> @vars ButtonDemo begin
mybotton = false
labelfield = "My Button label"
end;
julia> btn(:labelfield, @click(:mybutton))
"<q-btn :label=\"labelfield\" v-on:click=\"mybutton = true\"></q-btn>"