public enum TurboStreamAction extends java.lang.Enum<TurboStreamAction>
Enum Constant and Description |
---|
AFTER
Inserts the content within the template tag after the element designated by the target dom id.
|
APPEND
Appends the content within the template tag to the container designated by the target dom id.
|
BEFORE
Inserts the content within the template tag before the element designated by the target dom id.
|
PREPEND
Prepends the content within the template tag to the container designated by the target dom id.
|
REMOVE
Removes the element designated by the target dom id.
|
REPLACE
Replaces the element designated by the target dom id.
|
UPDATE
Updates the content within the template tag to the container designated by the target dom id.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction() |
java.lang.String |
toString() |
static TurboStreamAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TurboStreamAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurboStreamAction APPEND
public static final TurboStreamAction PREPEND
public static final TurboStreamAction REPLACE
public static final TurboStreamAction UPDATE
public static final TurboStreamAction REMOVE
public static final TurboStreamAction BEFORE
public static final TurboStreamAction AFTER
public static TurboStreamAction[] values()
for (TurboStreamAction c : TurboStreamAction.values()) System.out.println(c);
public static TurboStreamAction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NonNull public java.lang.String getAction()
public java.lang.String toString()
toString
in class java.lang.Enum<TurboStreamAction>