Cell Select
Change one preference and receive inline confirmation from the server.
HTML
<form class="rlw-cell" hx-post="/demo/workspace/cell/select" hx-trigger="change" hx-target="find output" hx-sync="this:replace">
<label class="rlw-cell-row"><span><strong>Start of week</strong><small>The first day in your planning calendar.</small></span>
<select class="rl-select" name="value" aria-label="Start of week"><option>Monday</option><option>Sunday</option><option>Saturday</option></select>
</label>
<output role="status" class="rlw-status"></output>
</form>HTTP exchange
Use the preview to see the request and the HTML your server returns.The local endpoint validates the value and returns a status fragment. Persist it in your own settings handler.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-workspace.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-workspace.js"></script>Point the HTMX attributes at your own HTML endpoints. Use the live preview’s HTTP exchange to inspect the request and response.
Download library and examples ↓