mapcomplete/UI/Input/MultiTagInput.ts
2020-09-25 17:57:01 +02:00

16 lines
No EOL
410 B
TypeScript

import {UIEventSource} from "../../Logic/UIEventSource";
import TagInput from "./SingleTagInput";
import {MultiInput} from "./MultiInput";
export class MultiTagInput extends MultiInput<string> {
constructor(value: UIEventSource<string[]> = new UIEventSource<string[]>([])) {
super("Add a new tag",
() => "",
() => new TagInput(),
value
);
}
}