summaryrefslogtreecommitdiff
path: root/wwwroot/js/button.js
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-11 01:12:21 +1000
committerJake Mannens <jake@asger.xyz>2026-08-21 01:05:38 +1000
commit26de1cfe7656decf6584e0f793f29d09a7a5ca79 (patch)
tree48431a937737a6949f1a0bcc7bacead566f6bf07 /wwwroot/js/button.js
parentb9b0f08222287e8c24ab16b3fc610e04213942f1 (diff)
Added button.js for new Razor Button component
Diffstat (limited to 'wwwroot/js/button.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;
+}