Domanda

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.

È stato utile?

Soluzione

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

data-bind="click: createSubActivity, disable: isDeliveryHistory() || isTimeAndMaterialLocked()"
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top