mysterious-toddler-20573
10/04/2021, 8:18 PMmysterious-toddler-20573
10/04/2021, 8:19 PMmysterious-toddler-20573
10/04/2021, 8:19 PMmysterious-toddler-20573
10/04/2021, 8:19 PMmysterious-toddler-20573
10/04/2021, 8:19 PMsparse-musician-64201
10/04/2021, 8:26 PMgorgeous-airport-54386
10/04/2021, 8:26 PMgorgeous-airport-54386
10/04/2021, 8:27 PM{})gorgeous-airport-54386
10/04/2021, 8:27 PMcold-lamp-11377
10/04/2021, 8:59 PMmysterious-toddler-20573
10/04/2021, 9:05 PMDevice would have to be already loaded:
html
<button _='init make Device with "{{ manageddevice.id }}", "{{ manageddevice.androidmanagementname }}
set element device to it
on click call device.request_logs()'>
Get Logs
</button>
Can't say I'm in love with that hyperscript (/cc @User )gorgeous-airport-54386
10/04/2021, 9:24 PMit instead of giving the device a name. As for imports, shouldn't be too difficult to add to the languagebillions-waitress-94609
10/05/2021, 9:59 AMswap to perform content append to a single <style> tag?
my endpoints is returning <style> tag generated for each html chunk, so would be nice if can have the chunk merged into a a style tag on document headbillions-waitress-94609
10/05/2021, 10:14 AMhx-swap-oob="beforeend" that is 🙏fresh-controller-36545
10/05/2021, 1:44 PMhx-include as the documentation suggests ([...] CSS query selector of the element or elements [...])? Couldn't find anything searching through this channel either.
I tried multiple variations of e.g. this hx-include="[name='search-input'],[name='clients'],[name='type']", but it seems to be ignoring it...fresh-controller-36545
10/05/2021, 1:44 PMhtml
<input
id="search-input"
name="search-input"
type="text"
class="form-control form-control-lg pl-5 rounded"
placeholder="BBS durchsuchen..."
hx-trigger="keyup changed delay:500ms"
hx-get="/search/"
hx-include="[name='search-input'],[name='clients'],[name='type']"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-target="#search-results"
hx-indicator="#indicator"
>mysterious-toddler-20573
10/05/2021, 1:47 PM<form> tag around all the inputs and it should include all of them. sorry about thatfresh-controller-36545
10/05/2021, 1:56 PMhx-include it wouldn't automatically include the triggering element, which caused the main confusion when "troubleshooting", as I couldn't seem to directly target inclusions.billions-microphone-84331
10/05/2021, 4:20 PMbillions-microphone-84331
10/05/2021, 4:23 PMmysterious-toddler-20573
10/05/2021, 4:46 PMmysterious-toddler-20573
10/05/2021, 4:46 PMmysterious-toddler-20573
10/05/2021, 4:46 PMmysterious-toddler-20573
10/05/2021, 4:46 PMbillions-microphone-84331
10/05/2021, 5:05 PMbillions-microphone-84331
10/05/2021, 5:05 PMmysterious-toddler-20573
10/05/2021, 5:07 PMHX-Request header to filter down what is swapped, and on the redirect that header is lostmysterious-toddler-20573
10/05/2021, 5:08 PMmysterious-toddler-20573
10/05/2021, 5:08 PMmysterious-toddler-20573
10/05/2021, 5:08 PM