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 Details

  • Constructor Details

    • HtmxConfigurationProperties

      public HtmxConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether the htmx integration is enabled. Default value (true).
      Specified by:
      isEnabled in interface io.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