Package io.micronaut.views.htmx
Class HtmxConfigurationProperties
java.lang.Object
io.micronaut.views.htmx.HtmxConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,HtmxConfiguration
@Requires(property="micronaut.views.htmx.enabled",
notEquals="false",
defaultValue="true")
@ConfigurationProperties("micronaut.views.htmx")
public class HtmxConfigurationProperties
extends Object
implements HtmxConfiguration
ConfigurationProperties
implementation of HtmxConfiguration
.- Since:
- 5.2.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
The prefix for htmx configuration. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the htmx integration is enabled.void
setEnabled
(boolean enabled) Whether the htmx integration is enabled.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
PREFIX
The prefix for htmx configuration.- See Also:
-
-
Constructor Details
-
HtmxConfigurationProperties
public HtmxConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether the htmx integration is enabled. Default value (true).- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether the htmx integration is enabled.
-
setEnabled
public void setEnabled(boolean enabled) Whether the htmx integration is enabled. Default value (true).- Parameters:
enabled
- True if is enabled
-