Вопрос

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.

Это было полезно?

Решение

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

data-bind="click: createSubActivity, disable: isDeliveryHistory() || isTimeAndMaterialLocked()"
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top