Package io.micronaut.views.turbo
Enum Class TurboStreamAction
- All Implemented Interfaces:
Serializable
,Comparable<TurboStreamAction>
,Constable
Turbo Seven Actions.
Turbo Seven Actions
- Since:
- 3.3.0
- Author:
- Sergio del Amo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInserts the content within the template tag after the element designated by the target dom id.Appends the content within the template tag to the container designated by the target dom id.Inserts the content within the template tag before the element designated by the target dom id.Prepends the content within the template tag to the container designated by the target dom id.Removes the element designated by the target dom id.Replaces the element designated by the target dom id.Updates the content within the template tag to the container designated by the target dom id. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
toString()
static TurboStreamAction
Returns the enum constant of this class with the specified name.static TurboStreamAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPEND
Appends the content within the template tag to the container designated by the target dom id. -
PREPEND
Prepends the content within the template tag to the container 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. -
REMOVE
Removes the element designated by the target dom id. -
BEFORE
Inserts the content within the template tag before the element designated by the target dom id. -
AFTER
Inserts the content within the template tag after the element designated by the target dom id.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getAction
- Returns:
- Turbo action in lowercase
-
toString
- Overrides:
toString
in classEnum<TurboStreamAction>
- Returns:
- Turbo action in lowercase
-