diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-11 01:12:21 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-11 01:16:00 +1000 |
| commit | d065145504e5f9c22a4ed7ede6982e09e1378c17 (patch) | |
| tree | 0a8bab1b428ad8b5480be4d6f93de06a4a257a26 /wwwroot/js/button.js | |
| parent | a99c8f2be3d80aef7b3ee896215546e93b2fa403 (diff) | |
Added button.js for new Razor Button componentwasm-server
Diffstat (limited to 'wwwroot/js/button.js')
| -rw-r--r-- | wwwroot/js/button.js | 6 |
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; +} |
