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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
| Constructor and Description |
|---|
FeatureInactiveAttrProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPrecedence() |
protected boolean |
isVisible(Arguments arguments,
Element element,
java.lang.String attributeName) |
determineFeatureStateprocessAttributedoProcess, getMatchercompareTo, getMessage, getMessageForProcessor, getMessageForTemplate, processpublic static final java.lang.String ATTR_NAME
public static final int ATTR_PRECEDENCE
protected boolean isVisible(Arguments arguments, Element element, java.lang.String attributeName)
isVisible in class AbstractConditionalVisibilityAttrProcessorpublic int getPrecedence()
getPrecedence in class AbstractProcessor