mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 22:41:23 +00:00
804 B
804 B
layout | title |
---|---|
layout.njk | </> kutty - kt-params |
kt-params
The kt-params
attribute allows you to filter the parameters that will be submitted with an AJAX request.
The possible values of this attribute are:
none
- Include no parameters*
- Include all parametersnot <param-list>
- Include all except the comma separated list of parameter names<param-list>
- Include all the comma separated list of parameter names
<div kt-get="/example" kt-params="*">Get Some HTML, Including Params</div>
This div will include all the parameters that a POST
would, but they will be URL encoded
and included in the URL, as per usual with a GET
.
Notes
- The default value for all
GET
's isnone
, to avoid polluting URLs - All other requests default to
*