white-motorcycle-95262
04/05/2023, 3:20 PMhx-select-oob
needs to be a comma separated list of ids without #
and without spaces.
On my machine, hx-select-oob="#id_one, #id_two"
fails, as does `hx-select-oob="id_one, id_two"`; the correct format seems to be hx-select-oob="id_one,id_two"
Personally, I feel like it should accept the first option (#
+ spaces), since that's most in line with hx-select
. Should I open a GH issue for this?mysterious-toddler-20573
04/05/2023, 4:39 PMmysterious-toddler-20573
04/05/2023, 4:39 PM<
and trailing />
to keep syntax similar to htmxbulky-monitor-77900
04/05/2023, 4:44 PMmysterious-toddler-20573
04/05/2023, 4:46 PMmysterious-toddler-20573
04/05/2023, 4:47 PMbulky-monitor-77900
04/05/2023, 4:48 PMbulky-monitor-77900
04/05/2023, 4:51 PMmysterious-toddler-20573
04/05/2023, 4:52 PMhtml
<div hx-trigger="my-custom-event[someProp == true]"
...
mysterious-toddler-20573
04/05/2023, 4:52 PMbulky-monitor-77900
04/05/2023, 4:53 PMbulky-monitor-77900
04/05/2023, 4:55 PMbulky-monitor-77900
04/05/2023, 4:56 PMmysterious-toddler-20573
04/05/2023, 5:02 PMmysterious-toddler-20573
04/05/2023, 5:02 PMmysterious-toddler-20573
04/05/2023, 5:07 PMhtmx:configRequest
there will be a detail field, evt.detail.triggeringEvent
that should hold the event that triggers the request in it. You can get the detail
for that event and then update the url in the configRequest event
something like this:
js
htmx.on("htmx:configRequest", function(evt) {
if(evt.detail.triggeringEvent.type === "myCustomEvent"){
evt.detail.url = evt.detail.triggeringEvent.detail.someCustomField;
}
});
mysterious-toddler-20573
04/05/2023, 5:08 PMconfigRequest
event and the triggering event, but that will let you pass some context through to the requestbulky-monitor-77900
04/05/2023, 5:28 PMbulky-monitor-77900
04/05/2023, 5:28 PMsome-airline-73512
04/05/2023, 8:44 PMmysterious-toddler-20573
04/05/2023, 8:54 PMmysterious-toddler-20573
04/05/2023, 8:56 PMsome-airline-73512
04/05/2023, 8:56 PMmysterious-toddler-20573
04/05/2023, 8:56 PMsome-airline-73512
04/05/2023, 8:57 PMsome-airline-73512
04/05/2023, 8:57 PMmysterious-toddler-20573
04/05/2023, 8:57 PMsome-airline-73512
04/05/2023, 8:58 PMmysterious-toddler-20573
04/05/2023, 8:58 PM