Skip to content

Boolean attribute binding

Choose a tag to compare

@g105b g105b released this 01 Sep 20:23
63bea65

For attributes that don't have a value, like disabled, selected, checked, etc. a new bind rule is added in this release, meaning the attribute will be added if a boolean condition is met.

The attribute value is marked with a preceding question mark. For example: <input type="checkbox" data-bind:checked="?isChecked" />

Small but powerful when working with large repeating datasets.

Have fun and stay productive!