Hi.
I am writing a custom binding handler and I am passing a parameter called 'disabled'. I expect this to be an observable so I can subscribe to it, but I see that users could pass an expression if they want. For example
<input data-bind="mytext: { disabled: !isEditable() }">
My problem is I am only getting the evaluated value of !isEditable() in the binding handler. I need to know whenever the expression changes though. I read that knockout can make a computed observable from an expression.
Is there a way I can get an observable on the passed in expression itself rather than the expression value?
Thank you,
Kelly