function Htmx::disabledElt
Creates a `data-hx-disabled-elt` attribute.
This attribute instructs HTMX to add the disabled attribute to the specified elements during a request.
The descriptor syntax is the same as hx-target. See the documentation link below for more details.
Parameters
string $descriptor: The attribute value.
Return value
static Returns this object to allow chaining methods.
See also
https://htmx.org/attributes/hx-disabled-elt/
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 915
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function disabledElt(string $descriptor) : static {
$this->createStringAttribute('hx-disabled-elt', $descriptor);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.