mapcomplete/test.ts

8 lines
389 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)
2022-01-26 21:40:38 +01:00
new List(allHidden.map(th => new Link(new FixedUiElement(th.id), "theme.html?layout=" + th.id))).AttachTo("maindiv")