angular-input-dropdown
angular-input-dropdown copied to clipboard
How to disable the text field as ng-disabled is not working for me.
How to disable the text field as ng-disabled is not working for me?
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!