Skip to content

A demo app to showcase different attribute values of hx-swap in htmx

Notifications You must be signed in to change notification settings

rajasegar/hx-swap-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hx-swap-demo

See the demo here

htmx offers a few different ways to swap the HTML returned into the DOM. By default, the content replaces the innerHTML of the target element. You can modify this by using the hx-swap attribute with any of the following values:

  • innerHTML
  • outerHTML
  • afterbegin
  • beforebegin
  • afterend
  • beforeend

About

A demo app to showcase different attribute values of hx-swap in htmx

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published