Class FeatureInactiveAttrProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
org.togglz.spring.boot.actuate.thymeleaf.processor.AbstractFeatureAttrProcessor
org.togglz.spring.boot.actuate.thymeleaf.processor.FeatureInactiveAttrProcessor
- All Implemented Interfaces:
org.thymeleaf.processor.element.IElementProcessor,org.thymeleaf.processor.element.IElementTagProcessor,org.thymeleaf.processor.IProcessor
Processor for the
inactive attribute in TogglzDialect. It shows or hides the given DOM container
based on feature state:
<span togglz:inactive="FEATURE">
Only visible when FEATURE is inactive.
</span>
Features may also be specified dynamically by using expressions:
<span togglz:inactive="${feature}">
Only visible when feature resolved by evaluating ${feature} is inactive.
</span>
When using Thymeleaf 2.0.x, literal feature names have to be quoted with single quotes. Thymeleaf from 2.1 onward
supports unquoted string literals.- Since:
- 1.0.1
- Author:
- Hendrik Heneke
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureInactiveAttrProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String dialectPrefix) -
Method Summary
Methods inherited from class org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, processMethods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
Constructor Details
-
FeatureInactiveAttrProcessor
public FeatureInactiveAttrProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String dialectPrefix)
-
-
Method Details
-
isVisible
protected boolean isVisible(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue) - Specified by:
isVisiblein classorg.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
-