Skip to content

hx-response wrap: HTMX 4 feature request #3669

@yousefgitter

Description

@yousefgitter

This might seem a little strange but I would like to wrap the htmx response with hx-response. I would prefer not to have to hx-retarget with headers.

<!-- hx-target or HX-Retarget is assumeed the requesting element no need to specify-->
<hx-response hx-reswap="outerHTML">
<div class="completed">
  Thank you for completing our form and buying our product
</div>
</hx-response>

<hx-partial hx-target="#basket" hx-swap="outerHTML">
  <div class="empty">
    0
  </div>
</hx-partial>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions