August 2024
Intermediate to advanced
186 pages
4h 3m
English
In addition to adding a set of HTML attributes, htmx provides a JavaScript API that provides lower-level control. This enables functionality that’s not possible using only attributes.
In this chapter, you’ll learn about each of the provided API methods and see examples of those that are commonly used. This will allow you to utilize the full power of htmx.
The htmx JavaScript API is implemented as a set of methods that are defined as properties on the global htmx object. The one exception is htmx.config which holds an object that describes htmx configuration options. The source code for these methods can be found in the htmx GitHub repository[62] and is easy to read.
These methods can be categorized as relating ...
Read now
Unlock full access