Spec-Zone.ru › htmx

htmx.config.indicatorClass

Sets class hidden by built-in indicator CSS

The htmx.config.indicatorClass option sets the CSS class used to mark loading indicator content.

Add this class in your markup:

<img id="spinner" class="htmx-indicator" alt="Loading">

htmx does not add the class. Built-in indicator CSS hides it until requestClass marks the indicator or an ancestor as active.

Default: "htmx-indicator"

Syntax

Use a custom class:

<meta name="htmx-config" content='indicatorClass:"loading"'>

<img id="spinner" class="loading" alt="Loading">

See Also

  • hx-indicator
  • htmx.config.includeIndicatorCSS
  • htmx.config.requestClass

Licensed under the Zero-Clause BSD License.
https://four.htmx.org/reference/config/htmx-config-indicatorClass/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API