From 8d63fa675264ae0d809f86ee036e081519b88299 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sun, 6 Jan 2019 01:51:17 +0100 Subject: Introduce nms-ui-boxes, a big step for GUI nmsBox is a new class for generic HTML-based elements, and will eventually be used to replace nms-info-box. The idea is simple: a generic way to deal with containers that are usually represented in HTML too. To test it, I've re-implemented the GUI for the oplog. This rewrite didn't really utilize the new benefits of the framework, but was a small step. I've also added nms-ui-switch, which isn't exposed anywhere yet and isn't done, but is a good start. nms-ui-switch will be the new way to add and edit switches in the future, it will probably be made more generic over time and thus can be reused for networks too. Note how x = nmsUiSwitch() will allow you to do x.row["community"].value to both get and set the value, and setting will visually update and run any verifier that will be relevant, and alert the parent. This can then be used for simple stuff like json-verification, but also for stuff like auto-complete or whatnot. God only knows. Obviously I will continue to work on this over the next few days... --- web/css/nms.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/css') diff --git a/web/css/nms.css b/web/css/nms.css index 9c783af..6bf2890 100644 --- a/web/css/nms.css +++ b/web/css/nms.css @@ -129,3 +129,8 @@ div.map-mode-legend button { width: 100%; height: 240px; } +.genericBox { + position: absolute; + z-index: 120; +} + -- cgit v1.2.3