function Htmx::disable
Creates a `data-hx-disable` attribute.
This attribute instructs HTMX to disable HTMX processing for the given node and any descendants.
Return value
static Returns this object to allow chaining methods.
See also
https://htmx.org/attributes/hx-disable/
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 893
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function disable() : static {
$this->createBooleanAttribute('hx-disable', TRUE);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.