public class FeatureInactiveAttrProcessor extends AbstractFeatureAttrProcessor
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.| Constructor and Description |
|---|
FeatureInactiveAttrProcessor(org.thymeleaf.templatemode.TemplateMode templateMode,
String dialectPrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isVisible(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IProcessableElementTag tag,
org.thymeleaf.engine.AttributeName attributeName,
String attributeValue) |
doProcessdoProcessgetDialectPrefix, getMatchingAttributeName, getMatchingElementName, processgetPrecedence, getTemplateModepublic FeatureInactiveAttrProcessor(org.thymeleaf.templatemode.TemplateMode templateMode,
String dialectPrefix)
protected boolean isVisible(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IProcessableElementTag tag,
org.thymeleaf.engine.AttributeName attributeName,
String attributeValue)
isVisible in class org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessorCopyright © 2022. All rights reserved.