91 Commits

Author SHA1 Message Date
Simon Hartley
e2353e26bc
Allow use of "this" when evaluating hx-vals (#3332)
Evaluate hx-vals with "this" referring to the element it is defined on

Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-20 14:52:17 -06:00
Carson Gross
3f49db3936 document inherit keyword 2025-06-19 11:21:49 -06:00
Piotr Tomiak
11ff1940f0
Automatically generate Web Types for the package based on current documentation (#3071) 2025-06-02 11:25:23 -06:00
Johannes Neumeier
e8f5990c1b
Mention hx-include does not match disabled fields. Fixes #3053 (#3274) 2025-04-17 07:55:11 +02:00
Simon Hartley
b1c1a1ba23
Documentation update for hx-swap (#3261) 2025-04-02 10:29:14 -06:00
Joundill
d1aa89192f
Documentation update for hx-get (#3251)
Update hx-get.md

Clarified notes on hx-get params
2025-03-25 08:44:22 +01:00
Simon Hartley
a3ac341994
Documentation update for hx-select-oob (#3250)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-03-25 08:42:51 +01:00
Simon Hartley
fec926d354
Documentation update for hx-trigger (#3246) 2025-03-24 08:08:41 +01:00
su21
07d35186fb
Fix wording in changed modifier description in hx-trigger.md (#3219)
Update the description of the `changed` event modifier from "the event will only change" to "the event will only fire" to clarify that the modifier controls when the `change` event triggers, improving accuracy and readability. Addresses a potential documentation error.

Fixes #3218
2025-03-06 08:16:19 +01:00
ollin
0a135f95ce
Update hx-swap.md (#3194)
typo
2025-02-18 09:30:55 +01:00
TGJ Gilmore
72b425f5fb
Documentation update to include the use of hx-headers to prevent CSRF (#3176)
* Documentation update to include the use of hx-headers to prevent CSRF

* Update hx-headers.md

Revised follow review.
2025-02-10 20:35:31 +01:00
William Jackson
46badfe0b1
Add descriptions for attribute pages (#3158)
Descriptions for attribute pages
2025-02-07 17:07:13 -07:00
Zixian
d890547012
Adding example to hx-ext documentation (#3109)
* Update hx-ext.md

* Update hx-ext.md

* Update www/content/attributes/hx-ext.md

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>

* Update hx-ext.md

---------

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2025-01-16 08:27:51 +01:00
Maciej Trybilo
1e844f67c3
Add an example of evaluated values passed to hx-headers. (#2939)
* Update hx-headers.md

Add an example of evaluated values passed to hx-headers.

* Follow the example in hx-vals.
2025-01-05 08:48:36 +01:00
Zixian
b3d3569719
Update hx-trigger.md (#3076)
* Update hx-trigger.md

- Added a clarification in notes to suggest adding a delay when adding reset to hx-trigger.

- Also thought it's useful to add a reference to MDN's list of web API  events, as it was one of the omissions in the hx-trigger doc which made me Google a little when I started out.

* Update hx-trigger.md

My bad, you're absolutely right. I've rewritten the proposed changes with your explanation in mind.
2024-12-15 09:25:58 +01:00
Sascha Woo
df73ff2a7a
Add missing disableInheritance documentation (#3017) 2024-11-13 16:05:04 +01:00
Paweł Korzeniewski
0ce391e924
Use correct extended CSS selector name in hx-trigger notes section (#2964) 2024-10-13 10:08:10 +02:00
MichaelWest22
1242977d11
improve hx-preserve documentation (#2949) 2024-10-07 18:58:49 +02:00
Carson Gross
52f8076dcf Merge remote-tracking branch 'origin/master' 2024-10-04 11:53:48 -06:00
Bracken
08369730b6
Clarify event filter uses in hx-trigger (#2914)
* Clarify event filter uses in hx-trigger

* Change hx-trigger event filter example to avoid ambiguity

input is both a tag and an event.

* Document the scope difference between standard selector and event filter

from:input listens to the page and click[event.target.matches('input')] listens to the element.

* Document that event filters as an alternative to CSS selectors require eval

* Move note about eval to standard event filters section.

* Simplify the referenced to standard event filters in the standard event modifiers section, and link to the standard event filters section instead.

* End quote in the correct place in standard event modifier doc.

* Correct language on how event filters from:body receive events.

* hx-trigger filter example catches click events specifically.
2024-10-04 09:26:09 +02:00
Carson Gross
5b2fe2c19c move general extension docs back to htmx.org/extensions and include core extension documentation on the site 2024-10-03 18:52:59 -06:00
Carson Gross
1537833ae0 Merge remote-tracking branch 'origin/dev' into dev 2024-10-02 19:58:30 -06:00
MichaelWest22
4a8172325e
enable hx-preserve handing for oob swaps (#2934)
* Add support for oob swaps with hx-preserve

* Add tests

* Documentation

* Impove fix to handle when oob swaps shouldSwap set false
2024-10-02 19:02:46 -06:00
Carson Gross
9fd8aa80b5 lmao 2024-09-22 20:39:08 -06:00
Keeper-of-the-Keys
7f8105a905
[Documentation] Add more information about other swap strategies (#2889)
* Add more information about other swap strategies

* Change suggested by @MichaelWest22

* Grammar error as per comments from @Telroshan

* Clarification requested by @Telroshan
2024-09-18 09:22:43 +02:00
shouya
e6a2ea15a2
Documentation for dynamic hx-vals (#2898)
* add test for spread operator in hx-vals

* update documentation

Closes #2885
2024-09-13 10:19:21 +02:00
MichaelWest22
230262cf93
Documentation of svg oob swaps (#2882)
* Slipery SVGs

* remove a

* Fix typo and punctuation

* Also add code syntax for tags

---------

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2024-09-08 10:21:56 +02:00
Jared Foy
73f529e3c3
Update hx-select.md (#2881) 2024-09-08 10:10:07 +02:00
Karol Skolasiński
e47c2f8c25
docs: add missing semicolons (#2820)
Co-authored-by: Karol Skolasiński <karol.skolasinski@7willows.com>
2024-08-16 10:02:50 +02:00
Christopher Jefferson
10f45c321e
Clarify that hx-trigger:from doesn't dynamically update (#2696)
* Fix typo

* Clarity that 'from' doesn't update as the page changes
2024-07-08 11:50:17 -06:00
Sameer Dudeja
6f83885de3
Update in Documentation (#2655) 2024-06-20 11:19:10 -06:00
Imbolc
f9b3f88357
Docs: Mention all extended selector keywords in hx-disabled-elt docs (#2544)
* Mention all extended selector keywords in `hx-disabled-elt` docs

* Expand possible values of the attribute similar to `hx-target`
2024-06-18 15:56:18 -06:00
Sam Furr
5847fbf393
Fix: 2594 docs update (#2605)
* remove unnecessary escaping of double quotes

* add json-like syntax correction
2024-06-18 11:22:35 -06:00
Carson Gross
20b42aaf88 Merge branch 'master' into dev
# Conflicts:
#	src/htmx.d.ts
#	src/htmx.js
#	test/core/security.js
#	www/content/docs.md
2024-05-16 12:50:13 -06:00
rafkub
ce5bb337aa
Update hx-indicator.md (#2444)
Fix typo: "add this the" -> "add this to the"
2024-04-25 12:33:14 -04:00
Carson Gross
81afe922d7 Merge branch 'master' into dev
# Conflicts:
#	www/content/extensions/client-side-templates.md
2024-04-16 14:40:31 -06:00
Carson Gross
45dd5f168d move all references to extensions over to the new site/repo 2024-03-26 16:37:26 -06:00
eduardolat
c43d48163f
Add documentation for multiple CSS selectors in hx-disabled-elt (#2421)
This update clarifies the hx-disabled-elt attribute's ability to accept multiple CSS selectors, separated by commas, enabling developers to disable multiple elements simultaneously during an HTTP request.
2024-03-21 15:25:49 -06:00
Joe Taber
520502121e
Add config option to ignore nested oob-swaps instead of processing them (#1235)
* Add config option to ignore nested oob swaps

* Fix oobElement root check

* Save config between tests; repeat some tests with different configs

* Add tests for oob-swaps in html, body tags

* Don't unnecessarily change const to var
2024-03-11 12:32:30 -04:00
p.b
d1fc7895f6
Add textContent swap style (#2356)
* feat: add textContent swap style

* add documentation

---------

Co-authored-by: pbt <pb.to@icloud.com>
2024-02-29 11:11:46 -05:00
Carson Gross
c16758a198 alpha2 2024-02-09 11:13:47 -07:00
Carson Gross
36c01420d6 Merge branch 'master' into v2.0v2.0 2024-02-09 09:41:49 -07:00
Brandon Philips
fb94dfa832
www: mention hx-preserve on hx-boost (#2248)
This note would have really helped me when I was working on avoiding my
maplibre canvas div from being overwritten when using hx-boost. I was
initially confused by the hx-boost=false not thinking that is what I
needed.
2024-01-27 15:33:38 -05:00
Carson Gross
b32925937c Merge branch 'master' into v2.0v2.0 2024-01-23 12:49:02 -07:00
MikeMoolenaar
94ca5f5a36
Clarify hx-validate documentation (#2221) 2024-01-21 19:33:36 -05:00
Carson Gross
8b59cb9383 docs + config of head handling 2024-01-05 13:11:30 -07:00
Carson Gross
42668c6df7 Merge branch 'v2.0v2.0' into disable-inheritance
# Conflicts:
#	src/htmx.js
#	www/content/docs.md
2023-12-24 14:55:11 -07:00
Carson Gross
66599ef887 Merge branch 'master' into dev
# Conflicts:
#	www/content/docs.md
2023-12-21 17:28:58 -07:00
Vincent
67cfbcf6bc update docs on oob swaps 2023-12-21 12:52:57 -07:00
Vincent
afb36ac6e6 Removed outdated note in oob swap documentation (#2119)
(cherry picked from commit 0b7a68e352bbbd54e22bf7f9e4301959cad2de99)
2023-12-21 12:45:41 -07:00