سؤال

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