jschneider
02/12/2021, 10:09 AMRobert Jaros
02/12/2021, 10:23 AMjschneider
02/12/2021, 10:23 AMRobert Jaros
02/12/2021, 10:24 AMRobert Jaros
02/12/2021, 10:34 AMvalue = it
, but at the same time allows to do value = somethingelse(it)
😉Robert Jaros
02/12/2021, 10:38 AMRobert Jaros
02/12/2021, 1:28 PMval state = ObservableValue(5.5)
rangeInput(state) {
step = 0.1
console.log("called once with value $it")
}
div(state) {
+"Current value: $it"
}
I consider implementing this for all form controls, but I don't know what to do with currently implemented functions (they get shadowed unless I change the name of the function e.g. rangeInputBind(state)
which I don't like).Robert Jaros
02/12/2021, 1:30 PMjschneider
02/12/2021, 1:30 PMtext("Name"){
//some configuration that is only called once
}.bindBidirectional(state)
jschneider
02/12/2021, 1:30 PMjschneider
02/12/2021, 1:31 PMjschneider
02/12/2021, 1:31 PMtext("Name"){
//some configuration that is only called once
}.bindTo(state)
jschneider
02/12/2021, 1:31 PMRobert Jaros
02/12/2021, 1:32 PMjschneider
02/12/2021, 1:34 PMjschneider
02/12/2021, 1:35 PM