forked from MapComplete/MapComplete
Huge refactoring: split readonly and writable stores
This commit is contained in:
parent
0946d8ac9c
commit
4283b76f36
95 changed files with 819 additions and 625 deletions
|
@ -1,11 +1,12 @@
|
|||
import {UIEventSource} from "../../Logic/UIEventSource";
|
||||
import {Store, UIEventSource} from "../../Logic/UIEventSource";
|
||||
import BaseUIElement from "../BaseUIElement";
|
||||
|
||||
export abstract class InputElement<T> extends BaseUIElement {
|
||||
|
||||
|
||||
abstract GetValue(): UIEventSource<T>;
|
||||
|
||||
abstract IsValid(t: T): boolean;
|
||||
|
||||
export interface ReadonlyInputElement<T> extends BaseUIElement{
|
||||
GetValue(): Store<T>;
|
||||
}
|
||||
|
||||
|
||||
export abstract class InputElement<T> extends BaseUIElement implements ReadonlyInputElement<any>{
|
||||
abstract GetValue(): UIEventSource<T>;
|
||||
abstract IsValid(t: T): boolean;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue