hx-ext

hx-ext 属性は、要素とそのすべての子要素に htmx エクステンション を有効にします。

値は単一のエクステンション名か、適用するエクステンションのコンマ区切りリストになります。

hx-ext タグは、プラグインを DOM の幅広い領域に適用したい場合親要素に設置したり、すべての htmx リクエストに適用したい場合は body タグに設置できます。

<div hx-ext="example">
  "Example" extension is used in this part of the tree...
  <div hx-ext="ignore:example">
    ... but it will not be used in this part.
  </div>
</div>