aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-ui-boxes.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms-ui-boxes.js')
-rw-r--r--web/js/nms-ui-boxes.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/js/nms-ui-boxes.js b/web/js/nms-ui-boxes.js
index 9a3330c..dda77c9 100644
--- a/web/js/nms-ui-boxes.js
+++ b/web/js/nms-ui-boxes.js
@@ -176,6 +176,12 @@ class nmsString extends nmsBox {
return this.html.textContent;
}
}
+
+class nmsButton extends nmsBox {
+ constructor(text,type = "btn-default") {
+ super("button",{html:{textContent:text,className:"btn "+type,type:"button"}})
+ }
+}
/*
* A general-purpose table. It can be created in one go, or
* as-you-go.