public interface GridRowConditionalAction<A extends GridRowConditionalAction<A>> extends Action<A>
ActionGrid.ActionPlacements#ROW
action that can be rendered based on specified
conditions. This action can be used only as of the grid row action e.g. to display the action for
the specified entity status.
For example, to show the action if the status is "FINISHED" use the following:
Actions.gridRowConditional() .label("Action label") .conditional(Conditional.when("status") .equalTo("FINISHED"))
Modifier and Type | Interface and Description |
---|---|
static class |
GridRowConditionalAction.Attributes |
Modifier and Type | Method and Description |
---|---|
default A |
conditional(Conditional... conditionals)
Adds the conditions to render this action.
|
default A |
conditional(List<Conditional> conditionals)
Adds the list of conditions to render this action.
|
addComponent, addComponents, addEndpoint, addEndpoint, apply, attribute, clearEndpoints, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAttribute, getAttribute, getAttributes, getComponent, getComponent, getComponents, getComponentsList, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOperationType, getOrder, getPlacement, getScope, getType, hasAttribute, hasComponent, hasEndpoint, id, label, label, operationType, order, placement, removeAttribute, removeComponent, removeEndpoint, scope, self, setAttributes, setComponents, setEndpoints, setId, setLabel, setOperationType, setOrder, setPlacement, setScope, setType, type
compareTo
default A conditional(Conditional... conditionals)
conditionals
- the Conditional
to render this actiondefault A conditional(List<Conditional> conditionals)
conditionals
- the Conditional
to render this actionCopyright © 2021. All rights reserved.