This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/directives/ui/repo-state/repo-state.component.ts
2019-11-21 16:37:20 -05:00

21 lines
573 B
TypeScript

import { Component, Input, Output, EventEmitter } from 'ng-metadata/core';
import * as template from './repo-state.component.html';
import * as styleUrl from './repo-state.component.css';
type RepoStateOption = {
value: string;
title: string;
description: string;
};
@Component({
selector: 'repo-state',
templateUrl: template,
styleUrls: [styleUrl],
})
export class RepoStateComponent {
@Input('<') public options: RepoStateOption[];
@Input('<') public selectedState: RepoStateOption;
@Output() public onChange = new EventEmitter<RepoStateOption>();
}