pub enum SwapType {
InnerHtml,
OuterHtml,
BeforeBegin,
AfterBegin,
BeforeEnd,
AfterEnd,
Delete,
None,
}Expand description
Specifies how htmx should swap content into the target element.
These correspond to the different swap strategies available in htmx.
Variants§
InnerHtml
Replace the inner HTML of the target element (default)
OuterHtml
Replace the entire target element
BeforeBegin
Insert content before the target element
AfterBegin
Insert content at the beginning of the target element
BeforeEnd
Insert content at the end of the target element
AfterEnd
Insert content after the target element
Delete
Delete the target element
None
Don’t swap any content
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwapType
impl RefUnwindSafe for SwapType
impl Send for SwapType
impl Sync for SwapType
impl Unpin for SwapType
impl UnwindSafe for SwapType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more