feat(runtime): make techdemo interactions declarative

req: examples/005

req: htmx_equivalents/002

req: dx/008

req: form/002
This commit is contained in:
slhx agent
2026-05-11 08:11:06 +02:00
parent 0de4c82a16
commit 2db7ed7a3c
6 changed files with 27 additions and 24 deletions
@@ -16,7 +16,7 @@
<section class="workspace">
<aside class="command-card">
<h2>Create an issue</h2>
<form data-slhx-form="launch_work" data-slhx-disable-while-pending>
<form data-slhx-handle="launch_work" data-slhx-form="launch_work" data-slhx-disable-while-pending>
<label>Title <input name="title" required="required" value="Ship typed effects"></label>
<label>Lane
<select name="lane" required="required">
@@ -26,9 +26,8 @@
</select>
</label>
<label>Impact <input name="impact" type="number" min="1" max="9" value="7"></label>
<button class="primary-action" type="button" data-slhx-handle="launch_work" onclick="return slhxTechdemoLaunch(this)">Create issue</button>
<button class="primary-action" type="button" data-slhx-handle="launch_work">Create issue</button>
</form>
<form hidden="hidden" data-slhx-handle="launch_work" data-slhx-form="launch_work"></form>
<div class="quick-actions">
<button type="button" data-slhx-handle="simulate_push">Simulate server push</button>
<button type="button" data-slhx-handle="reset_demo">Reset demo</button>