forked from MapComplete/MapComplete
More work on searchable mappings
This commit is contained in:
parent
dd992a1e0d
commit
f9ce1e4db4
9 changed files with 398 additions and 227 deletions
|
@ -1,5 +1,5 @@
|
|||
import {InputElement} from "./InputElement";
|
||||
import {UIEventSource} from "../../Logic/UIEventSource";
|
||||
import {Store, UIEventSource} from "../../Logic/UIEventSource";
|
||||
|
||||
|
||||
export default class InputElementMap<T, X> extends InputElement<X> {
|
||||
|
@ -13,7 +13,7 @@ export default class InputElementMap<T, X> extends InputElement<X> {
|
|||
isSame: (x0: X, x1: X) => boolean,
|
||||
toX: (t: T) => X,
|
||||
fromX: (x: X) => T,
|
||||
extraSources: UIEventSource<any>[] = []
|
||||
extraSources: Store<any>[] = []
|
||||
) {
|
||||
super();
|
||||
this.isSame = isSame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue