How to disable active and inactive button based on the status like, if status is pending the button must be disabled and if status is active the button is enabled
For further actions, you may consider blocking this person and/or reporting abuse
How to disable active and inactive button based on the status like, if status is pending the button must be disabled and if status is active the button is enabled
For further actions, you may consider blocking this person and/or reporting abuse
Itamar Tati -
InterSystems Developer -
Hussein Mahdi -
ILshat Khamitov -
Top comments (5)
I guess you can bind the disable property of the button and use the ngOnChanges hook to check the status.
sorry i didn't get that
you have to bind the button property
Example:
Then in your ts create a variable isDisabled with type boolean so it can either be true or false.
Then include an onChanges hooks(like onInit).
Then inside the hook function you can do the cases
example:
if(status === 'pending') {
this.isDisabled = true;
}
666
B666