Knockout attr binding with attributes like 'readonly' and 'disabled'

前端 未结 3 1511
粉色の甜心
粉色の甜心 2020-12-06 16:36

What\'s the suggested \"best practice\" way to use Knockout\'s \"attr\" data binding with standalone attributes like \"readonly\" and

3条回答
  •  北海茫月
    2020-12-06 16:54

    Knockout has an enable binding as well as a disable binding.

    I'm not sure if these were available when the question was asked, but anyone referring back to this issue should be aware.

提交回复
热议问题