mapcomplete/test.ts

7 lines
387 B
TypeScript
Raw Normal View History

2022-01-26 20:47:08 +01:00
import {AllKnownLayouts} from "./Customizations/AllKnownLayouts";
import List from "./UI/Base/List";
import Link from "./UI/Base/Link";
2022-01-25 21:55:51 +01:00
import {FixedUiElement} from "./UI/Base/FixedUiElement";
2022-01-25 00:48:05 +01:00
2022-01-26 20:47:08 +01:00
const allHidden = AllKnownLayouts.layoutsList.filter(l => l.hideFromOverview)
new List(allHidden.map(th => new Link(new FixedUiElement(th.id), "theme.html?layout="+th.id))).AttachTo("maindiv")