Consider a more general key toggle method #90
Labels
design
enhancement
ergonomics
need to find time
https://falseknees.com/297.html
needs design
The solution is not clear, or I am not very happy with it
In line with #89...
Currently we can toggle only composite attributes like
cls
:Would be nice to be able to use similar pattern with other types of keys, but there's a challenge with styles – they use constants like
display.none
, the existingcls
syntax doesn't have an equivalent in this case.Maybe we should change it to be a postfix:
Same question as in #89 regarding using default value vs prior value:
when(false)
do nothing, or set an "empty" / "default" value?when <-- $bool
emits false, what should happen then?The text was updated successfully, but these errors were encountered: