Knockout data-bind disable. With two conditions

data-binding, knockout-2.0, knockout.js

Solution

If `isDeliveryHistory` and `isTimeAndMaterialLocked` are observables, you should use them like this:

data-bind="click: createSubActivity, disable: isDeliveryHistory() || isTimeAndMaterialLocked()"

Problem

Is it possible to use || operator in disable like this: ``` data-bind="click: createSubActivity, disable: isDeliveryHistory || isTimeAndMaterialLocked" ``` I have tried, but it seems like it doesn't work.

Original source