angular-input-dropdown icon indicating copy to clipboard operation
angular-input-dropdown copied to clipboard

How to disable the text field as ng-disabled is not working for me.

Open bittu42 opened this issue 8 years ago • 1 comments

How to disable the text field as ng-disabled is not working for me?

bittu42 avatar Aug 23 '16 03:08 bittu42

Hi,

There's no built in way to use ng-disabled at the moment. You can manually add it to the input created in the template here https://github.com/hannaholl/angular-input-dropdown/blob/master/inputDropdown.js#L4

If you want to use it as an attribute in your code like this <input-dropdown ng-disabled="expression">, you can extend the directive by adding a custom attribute and then pass the value down to the template string. Similar to what I've done for ng-required here: https://github.com/hannaholl/angular-input-dropdown/blob/master/inputDropdown.js#L33 https://github.com/hannaholl/angular-input-dropdown/blob/master/inputDropdown.js#L9

Let me know if this works for you!

hannaholl avatar Aug 31 '16 16:08 hannaholl