DomTemplate
DomTemplate copied to clipboard
Token modifier: Inverse token modifier
There's already an inverse boolean modifier, so I would like to see an inverse token modifier, so I can toggle a class if a parameter is FALSE rather than TRUE.
<div class="whatever" data-bind:class=":!showWhatever hidden">
rather than:
<div class="whatever" data-bind:class=":hideWhatever hidden">