We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
addTrigger
The htmx docs for HX-Trigger state that events can be strings, but can also be any JSON serializable value.
Would you be open to a PR in this regard?
Example
Input:
with(new HtmxResponse())->addTrigger('showMessage', ['level' => 'info', 'message', 'Here Is A Message'])
Output:
HX-Trigger: {"showMessage":{"level" : "info", "message" : "Here Is A Message"}}
What would happen if you call addTrigger with the same event name twice is up for debate.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The htmx docs for HX-Trigger state that events can be strings, but can also be any JSON serializable value.
Would you be open to a PR in this regard?
Example
Input:
Output:
HX-Trigger: {"showMessage":{"level" : "info", "message" : "Here Is A Message"}}
What would happen if you call
addTrigger
with the same event name twice is up for debate.The text was updated successfully, but these errors were encountered: