mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
23 lines
492 B
TypeScript
23 lines
492 B
TypeScript
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-erasable-input',
|
|
templateUrl: './erasable-input.component.html',
|
|
styleUrls: ['./erasable-input.component.scss'],
|
|
})
|
|
export class ErasableInputComponent implements OnInit {
|
|
@Output() inputModelChange = new EventEmitter();
|
|
|
|
@Input() inputModel;
|
|
|
|
constructor() {}
|
|
|
|
ngOnInit(): void {}
|
|
|
|
eraseInput() {
|
|
//
|
|
this.inputModelChange.emit('');
|
|
// TODO focus on other element
|
|
}
|
|
}
|