forked from MapComplete/MapComplete
Last finishing touches for the opening-hours visualization
This commit is contained in:
parent
895ec01213
commit
35bd49e5ba
13 changed files with 487 additions and 97 deletions
16
UI/SpecialVisualizations.ts
Normal file
16
UI/SpecialVisualizations.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import {UIElement} from "./UIElement";
|
||||
import OpeningHoursVisualization from "./OhVisualization";
|
||||
import {UIEventSource} from "../Logic/UIEventSource";
|
||||
|
||||
export default class SpecialVisualizations {
|
||||
|
||||
public static specialVisualizations: { funcName: string, constr: ((tagSource: UIEventSource<any>, argument: string) => UIElement) }[] =
|
||||
|
||||
[{
|
||||
funcName: "opening_hours_table",
|
||||
constr: (tagSource: UIEventSource<any>, keyname) => {
|
||||
return new OpeningHoursVisualization(tagSource, keyname)
|
||||
}
|
||||
}]
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue