summaryrefslogtreecommitdiff
path: root/wwwroot/js
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-11 01:12:21 +1000
committerJake Mannens <jake@asger.xyz>2026-06-25 02:43:50 +1000
commita42b4ea8e9a255760bd5d2ba3cfae98650c08763 (patch)
tree78f4135bc37e312e272a146f4f9dc7e3ee69c43a /wwwroot/js
parent3f6d54449a9e970f04483ccf30951207b9664e1a (diff)
Added button.js for new Razor Button component
Diffstat (limited to 'wwwroot/js')
-rw-r--r--wwwroot/js/button.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/wwwroot/js/button.js b/wwwroot/js/button.js
new file mode 100644
index 0000000..f5d32f5
--- /dev/null
+++ b/wwwroot/js/button.js
@@ -0,0 +1,6 @@
+function triggerButtonError(e) {
+ e.classList.remove('error')
+ void e.offsetWidth;
+ e.classList.add('error')
+ void e.offsetWidth;
+}