Other Methods
The following table summarizes the htmx methods that don’t fall into the previous categories.
Method | Description |
|---|---|
htmx.ajax | sends an HTTP request and inserts the HTML response into the DOM |
htmx.config | an object that holds htmx configuration options |
htmx.createEventSource | creates a server-sent event (SSE) source |
htmx.createWebSocket | creates a WebSocket |
htmx.defineExtension | defines a new htmx extension |
htmx.logAll | logs all htmx events for debugging |
htmx.logNone | disables the logging of htmx events |
htmx.logger | holds the function used to log htmx events; can be changed |
htmx.onLoad | specifies a function to call every time the htmx:load event is dispatched |
htmx.parseInterval | returns the milliseconds represented by a time string (ex. 2s) |
htmx.process | processes the ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access