mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
31 lines
538 B
TypeScript
31 lines
538 B
TypeScript
|
import {Component, Input, OnInit} from '@angular/core';
|
||
|
|
||
|
interface Item {
|
||
|
label: string,
|
||
|
value: string
|
||
|
}
|
||
|
|
||
|
interface SelectorConfig {
|
||
|
label: string,
|
||
|
name: string,
|
||
|
id: string,
|
||
|
selectorNgModel: any,
|
||
|
listItems: Item[]
|
||
|
}
|
||
|
|
||
|
@Component({
|
||
|
selector: 'framadate-selector',
|
||
|
templateUrl: './selector.component.html',
|
||
|
styleUrls: ['./selector.component.scss']
|
||
|
})
|
||
|
export class SelectorComponent implements OnInit {
|
||
|
@Input() selectorConfig: SelectorConfig;
|
||
|
|
||
|
constructor() {
|
||
|
}
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
|
||
|
}
|