Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Knockout binding does not work with the disabled option
posted

It looks like this feature is not supported at all. Do you confirm this?

Here is the test to reproduce the bug: http://codepen.io/anon/pen/yjhgz

Clicking on the button should enable the text editor.

Parents
No Data
Reply
  • 3115
    Suggested Answer
    Offline posted

    Hi Francesc Baeta,

    The enable/disable binding is native for knockout and it's supported. But not inside the editor. It should be inside the same data-bind attribute, but outside the extension declaration. In example:

    data-bind="igTextEditor: { value: customerName}, disable: isDisabled ", where both customerName and isDisabled are observables.

     

    Here si jsFiddle example with a couple of editors with disable binding:

    http://jsfiddle.net/todorpaskalev/L3afN/5/

     

    Thanks,

Children
No Data