function Htmx::ext
Creates a `data-hx-ext` attribute.
This attribute instructs HTMX to enable HTMX extensions for an element and descendants.
Parameters
string $names: An extension name, or a comma separated list of names.
Return value
static Returns this object to allow chaining methods.
See also
https://htmx.org/attributes/hx-ext/
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 971
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function ext(string $names) : static {
$this->createStringAttribute('hx-ext', $names);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.