funky-framadate-front/src/app/ui/selector/selector.component.ts

28 lines
493 B
TypeScript
Raw Normal View History

import { Component, Input, OnInit } from '@angular/core';
interface Item {
2020-04-21 10:50:26 +02:00
label: string;
value: string;
}
interface SelectorConfig {
2020-04-21 10:50:26 +02:00
label: string;
name: string;
id: string;
selectorNgModel: any;
listItems: Item[];
}
@Component({
2020-04-21 10:50:26 +02:00
selector: 'framadate-selector',
templateUrl: './selector.component.html',
styleUrls: ['./selector.component.scss'],
})
export class SelectorComponent implements OnInit {
2020-04-21 10:50:26 +02:00
@Input() selectorConfig: SelectorConfig;
2020-04-21 10:50:26 +02:00
constructor() {}
2020-04-21 10:50:26 +02:00
ngOnInit() {}
}