Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New feature] Comma separated list syntax for HX-Trigger response header #1479

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

Telroshan
Copy link
Collaborator

Adds support for comma separated list of event names to the HX-Trigger response header.
Currently, to trigger multiple events with that header, you have to use the JSON syntax, even if you don't have any additional data to send.

This change lets you specify a list of event names, separated by commas, without additional details, like so:
HX-Trigger: event1, event2

The syntax is similar to the one of the hx-target attribute, that also supports a comma separated list syntax

@Telroshan Telroshan changed the title Comma separated list syntax for HX-Trigger response header [New feature] Comma separated list syntax for HX-Trigger response header Jun 16, 2023
www/content/headers/hx-trigger.md Outdated Show resolved Hide resolved
@alexpetros
Copy link
Collaborator

@Telroshan is this one ready to go?

@Telroshan
Copy link
Collaborator Author

@alexpetros yep, the requested wording change was pushed !

@alexpetros alexpetros added ready for review Issues that are ready to be considered for merging enhancement New feature or request labels Jul 17, 2023
@1cg 1cg merged commit 91d0630 into bigskysoftware:dev Jul 18, 2023
@Telroshan Telroshan deleted the trigger-header-list-syntax branch September 22, 2023 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready for review Issues that are ready to be considered for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants