This directive sets the disabled attribute on the element if the expression inside ngDisabled evaluates to truthy.

learn more… | top users | synonyms

1
vote
1answer
25 views

Disable list item - angularjs

I'm creating a breadcrumb navigation in AngularJS. Some links should be disabled because the user didn't meet the requirements. I've looked into the angular documentation and I figured out that you ...
0
votes
1answer
20 views

How to make a input disabled by default using angular directives

How do I make a textual input field disabled by default and have it toggled using a checkbox. I am getting the checkbox to toggle the input field between an enabled and a disabled state but I cannot ...
-1
votes
1answer
18 views

how to write function to target specific variable for ng disable that inside ng repeat?

I'm trying to build todo list app in angular. When you add new item, it will add to input box(by default, i set it to disabled) inside the table and also add Edit link next to that input. Once i click ...
0
votes
1answer
16 views

AngularJS Enable / Disable Dropdown based on the variable

I have a Dropdown on the CreateTask.cshtml page as below. <select class="form-control input-sm" id="analysisType" name="analysisType" ng-model="vm.analysisType" ng-options="analysistype.typeID as ...
3
votes
2answers
53 views

why ng-disabled does not work?

This is my html tag: <input class="editable-input" ng-model="ac.accesses.permision.alias" ng-disabled="true"> but input tag does not disable.
0
votes
0answers
11 views

Disabling directive based on fieldset

I have a form with a fieldset element using ngDisable and a custom directive. When the fieldset gets disable all native elements get disabled but not my directive. How to get the fieldset disabled ...
0
votes
2answers
39 views

AngularJS input text disabled by select option

I've a simple form with a <select> and an <input text>; what I need is to disable the input text if the value of an option is true. This is my code: <div class="form-group"> <...
0
votes
1answer
93 views

How to enable or disable input fields dynamically in angular js material design

I am having an issue with ng-disable. as i am using angular material i think this is not working. I want my input box to be disabled or enabled dynamically based on condition. Note:- I have multiple ...
0
votes
1answer
39 views

Microsoft Edge - Disabled link is clickable

I have an angular anchor tag in my page, and when it is disable it's still clickable in the Microsoft Edge browser. <a ng-disabled="true" ng-click="Click()">Link</a> a[disabled] { ...
1
vote
2answers
91 views

Change button text dynamically in AngularJs

I am working with AngularJS, CSS and HTML. Here's what I'm trying to do: A button gets disabled based on the output of a certain function isPublished(). I need the hover text over the button like ...
0
votes
0answers
70 views

Disable other row table when one is clicked in angularjs

I have following table: <tr ng-repeat="p in value" ng-click="lista.select(p)" ng-class="{'selected':p.selected}" > <td >{{p.id_patient.id_patient}}</td> <td>{{p....
1
vote
2answers
201 views

How to disable the div tag in angular 2

I am trying to disable the div tag after a success callback of that action. please look my ion-content <ion-content padding class="forgot-password"> <div [ngClass]="{active: isOn,...
0
votes
2answers
48 views

Create angular directive like ngDisabled to check roles in list

I want to create an attribute directive like ngDisabled to enable or disable elements if some specific role is present on my service. angular.module(...) .service('RolesSerivce', function() { ...
2
votes
7answers
381 views

Setting validation for button if atleast one check box is selected in ng-repeat

I'm facing a problem in which if I need to enable the save button if at least one check box is selected which is inside ng-repeat. When I click for the first time it works well but dosen't work for ...
0
votes
0answers
44 views

Radio buttons validation along with text boxes using angularjs

I am trying to get a submit button enabled when a radio button and input field both are valid entries. I have 3 radio buttons, upon check a text box will open up, and when user enters a text then ...
0
votes
0answers
15 views

Can we disable smart-table grid

On row click I want to perform some data manipulation but when this is going on I do not want user to select some other row. Can I disable the smart-table.
0
votes
0answers
25 views

Enable a button when a radio is selected and clear previous selection

I have been playing around with radio buttons. The task that I am trying to accomplish here is that I have four radio buttons in my page. My HTML code is <div class="radio"> <label> ...
0
votes
0answers
48 views

Angular ng-disabled firing two alerts

I have a very simple html page which I'm using a bit of Angular JS. Each field has it's enable/disable roll. On the especific field INCLUIR SEGURO, I call a method called ValidaIncluirSeguro which is ...
0
votes
0answers
185 views

Changing ng-disabled in a custom directive

I'm trying to wrap a button with a directive that will disable it according to the response from an external service. However, I need to preserve the original ng-disabled value (if any) of the button. ...
6
votes
2answers
80 views

ng-disabled not working with <i> tag using font-awesome

I have created a plunk in which I want to validate a form that has a button created using font-awesome. The text field is required and I want to disabled the icon if no data is entered.But ng-disabled ...
0
votes
1answer
40 views

Ng-disabled not reacting on changes in value

I'm trying to disable submit button while some async call is in progress, but it looks like ng-disabled isn't watching for value change. Here is the code sample: Markup: <button ng-show="!...
1
vote
1answer
41 views

Enable the Button when any checkbox checked in the loop, Out Side Button

Enable the Button only when any checkbox checked in the loop, the button is out side the loop HTML <body ng-controller="MainCtrl"> <div ng-repeat="$item in items"> <label> ...
0
votes
0answers
14 views

How can optimize the expressions passed to ngdisable directive on angularJS?

I have the following expression wrapped into a scope function to disable the add button in view using angularJS ng-disabled directive : $scope.disableAddButton = function() { return (!(...
0
votes
2answers
108 views

Disable submit button after one click in angularJS

I would like to disable button after one click. Code: <button id="submitRequest" class="btn btn-primary btn-active" ng-disabled="!frmRequest.$valid||!r.DataUseAgreement||(!chkBMT&&!...
0
votes
1answer
80 views

What is the 'AngularJS' way to disable an 'option' HTML5 element?

What is the 'AngularJS' way to disable an 'option' HTML5 element? I'm using AngularJS v1.2.25. Plunk Link: https://plnkr.co/edit/fS1uKZ <!-- CODE BEGIN --> <!DOCTYPE html> <html> ...
0
votes
1answer
75 views

enable and disable buttons according to current date pass in angularjs

i have to make week schedular and i want to disable the buttons according to date i.e if today date pass then previous buttons see image: here html code: <div id="container" style=" width: ...
0
votes
2answers
373 views

Disable ng-options value dynamically

I want to disable select option which is in loop. So far i have implemented in following link. Its working way I wanted but i have made code very long. Is there any other way to implement. Code Link ...
1
vote
2answers
31 views

Disabling button when data entered is not in database

What will be the best way to keep “Save” button disable until a valid Instruction Text is entered? I tried using ng-disable on “Save” button but it become activated once I put something in the input ...
0
votes
3answers
157 views

Angularjs checkbox checked enables input field

I'm kinda new in AngularJS and my issue is: I have a loop like this: <body ng-app="ngToggle"> <div ng-controller="AppCtrl"> <input type="checkbox" ng-repeat="btn in btns" ...
1
vote
1answer
33 views

Make button disabled by changing object property

On button click I wan't to disable all buttons to prevent any other operation. For this I use request.isProcessing bool value. In the beginning function approve(request) I set request.isProcessing to ...
2
votes
1answer
147 views

ng-disabled for href tag in list item not working [duplicate]

What I need is to disable click on <a> tag that is in list item in ui list so it wont show include me <div> that i have on clicks(except for last list item). I tried with ng-disabled on ...
0
votes
1answer
40 views

Download button not responding to ng-disabled in angularjs

I have a webpage which displays contents of a folder/directory upon clicking on it. If the contents of a folder has files, then download button is activated. If the contents of the folder is a ...
0
votes
0answers
81 views

How to make all child controls in a fieldset disabled?

I am developing and angular with typescript application and I encountered the following issue. I use a fieldset for managing several controls along with the directive ng-include to the specific html....
0
votes
2answers
52 views

ngDisabled alternative for link?

I have a list on my page with delete button for each element. The button is not <button>, but actually is a fontawesome icon with ng-click pointing at method of RESTful service: <i class="fa ...
0
votes
1answer
72 views

angularJS : disable link based on variable value, and display message box

I am struggling to figure out how to disable a ng-click event based on the value of a boolean variable. I have a form, on which the user has to click a (+) sign/ link to add a new record, when the ...
0
votes
0answers
50 views

ng-disable not working with ng-option

This is only happening when I am using directive Template: (userlist.html) <select id="teamUsers" ng-model="selectedUser.selected" data-placeholder="Select User" chosen="" class="chosen-select ...
0
votes
1answer
51 views

list of checkboxes ng-click returning always the first element when any other is clicked, ng-disabled not working

I gave a grid of checkboxes, whenever I try to click any it passes always the same one in the ng-click HTML <tr ng-repeat="partecipant in current_event.partecipants"> &...
4
votes
1answer
7k views

How can I disable my checkbox from AngularJS input?

<div ng-repeat="x in spaceutilization"> <input type="checkbox" name="{{x.filenumber}}" id="{{x.id}}" class = "pdffiles" value="101SP{{x.initials}}.dwg" /><label for="{{x.id}}"><...
0
votes
0answers
45 views

disable submit button unless default values are changed

i have an issue i have a form which has default values filled in it and initially submit button is disabled. and if some on edits the fields submit button gets enabled but if the changes are reverted ...
0
votes
0answers
53 views

How to disable a button based on two tabs with different forms in AngularJS

I have the following template with two tabs, each one containing a form, what i want to accomplish is to disable the save button on the first tab if it is invalid or if the user is in the second tab ...
0
votes
2answers
46 views

Login page not working angular js

I am trying to disable my Login button, when nothing is present in the form fields. I am already using ng-disabled, could any body help why it is not getting disabled. Find the sample code below: I ...
0
votes
1answer
73 views

Display ng-disabled as enabled

I have disabled an element using ng-disabled but although I want to disable the button but make it appear as if its still enabled. Is it possible? This is how I have disabled the button- <button ...
1
vote
0answers
322 views

ng-disabled / ng-readonly no working

I'm working on an AngularJS app and I'm stuck. I have a simple tabbled interface section with the same layout for every tab section. When I switch the tab, I check to see what conditions are met and, ...
0
votes
1answer
1k views

What are the reasons for ng-disabled not to work when used in a button

I have a Angular form where i am doing validation. And i want the form to be not submit-able if any required fields are empty and validation fails. The form give bellow. <form name="userForm" ...
1
vote
1answer
1k views

how to disable button in kendo grid column

I need to have 2 buttons in a cell. One is calling some function, other is disabling previous button that calls some function. I tried this(part of my template in a column): return '<button kendo-...
-3
votes
2answers
237 views

ng-class not working with ng-disabled

I am new to angularJS, I want to change CSS for a button when it is disabled, here is my code : <button ng-hide="spot_id" class="btn ripple" ng-click="Activity()" style=" padding: 4px 12px 4px ...
0
votes
0answers
71 views

how to disable two way binding (security issue)

I'm facing an issue here that happens when the final user edit the HTML in the browser and change the pages behavior. Lets say I have an input with disabled="true" and another attribute that makes the ...
1
vote
4answers
609 views

Angular - Enable button only if object inside an array contains completed:true

I have an array that contains a bunch of objects. If there are no objects that contains a "true" value for the key "completed", I would like to disable a button. //Here is the format for the array ...
0
votes
1answer
787 views

How Can I set the ng-disabled value of a button based on the original value of a model

I am attempting to disable a button which is next to a checkbox, but only if the underlying model of the checkbox is different from the original value. Pristine on it's own doesn't work because ...
0
votes
1answer
331 views

How to disable the checkbox in angularjs

I have a list of checkboxes on view page for to send notifications for different roles.I want to disable some checkboxes in unchecked state initially. I am working with following code in view <...