Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145893 | Jul 12,2019 07:57 AM UTC | Jul 15,2019 02:21 PM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: DropDownList |
//on button click
public onClick(args: any): void {
let listElt: Element = this.listObj.element.querySelector(".e-input-group");
listElt.classList.remove('e-success')
listElt.classList.remove('e-warning');
listElt.classList.remove('e-error');
if (args.target.id == 'btn1') {
listElt.classList.add('e-success')
}
else if (args.target.id == 'btn2') {
listElt.classList.add('e-warning');
}
else if (args.target.id == 'btn3') {
listElt.classList.add('e-error');
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.