Convert markdown into UIElements

This commit is contained in:
Pieter Vander Vennet 2022-04-30 00:28:51 +02:00
parent 73cec987c9
commit f5ae73aac1
3 changed files with 28 additions and 10 deletions

View file

@ -27,6 +27,7 @@ import FilterConfigJson from "./Json/FilterConfigJson";
import {And} from "../../Logic/Tags/And";
import {Overpass} from "../../Logic/Osm/Overpass";
import Constants from "../Constants";
import {FixedUiElement} from "../../UI/Base/FixedUiElement";
export default class LayerConfig extends WithContextLoader {
@ -416,7 +417,8 @@ export default class LayerConfig extends WithContextLoader {
let quickOverview: BaseUIElement = undefined;
if (tableRows.length > 0) {
quickOverview = new Combine([
"**Warning** This quick overview is incomplete",
new FixedUiElement("Warning: ").SetClass("bold"),
"this quick overview is incomplete",
new Table(["attribute", "type", "values which are supported by this layer"], tableRows)
]).SetClass("flex-col flex")
}