Topic: Configuration for mdb-material-chips
junior5417 pro asked 6 years ago
- Can I include my own function checking when user pressed "ENTER".
- How do I include "onInput" on MDB-Material-Chips tag
Damian Gemza staff answered 6 years ago
junior5417 pro answered 6 years ago
Damian Gemza staff answered 6 years ago
<mdb-material-chips [(ngModel)]="addtags" (keydown.enter)="onEnterPress()" (input)="onInput($event)" ></mdb-material-chips>
hideElement: boolean = true; addtags:string[] = []; onEnterPress() { console.log('enter'); } onInput(event:any) { console.log(event.target.value); }
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.2
- Device: Mac
- Browser: Chrome
- OS: OSX
- Provided sample code: No
- Provided link: No