hx-ext

hx-ext 屬性為一個元素及其所有子元素啟用 htmx 擴展

該值可以是單個擴展名稱,或以逗號分隔的要應用擴展列表。

如果希望插件應用於整個 DOM 區域,則 hx-ext 標籤可以放置在父元素上;如果希望應用於所有 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>