Package org.patternfly.component
Interface HasIdentifier<E extends Element,B extends TypedBuilder<E,B>>
- Type Parameters:
E- the type of the elementB- the type of the builder used to build the element
- All Superinterfaces:
IsElement<E>,TypedBuilder<E,B>
- All Known Implementing Classes:
AccordionItem,ActionListGroup,ActionListItem,Alert,BreadcrumbItem,Cell,DataListItem,DescriptionListGroup,ExpandableNavigationGroup,FormGroup,JumpLinksItem,Label,ListItem,MenuItem,MenuItemAction,NavigationGroup,NavigationItem,ProgressStep,SimpleListItem,Tab,Td,Th,TitleCell,ToggleGroupItem,ToolbarItem,Tr,TreeViewItem
public interface HasIdentifier<E extends Element,B extends TypedBuilder<E,B>>
extends TypedBuilder<E,B>, IsElement<E>
This interface represents a (sub)component that has an identifier. It is normally implemented by child components of
components implementing
HasItems.
It's up to the implementation what to do with the ID. The recommendation is to set it as data attribute using
Dataset.identifier and not set it on the root element as Element.id. This
guarantees that you can still use an arbitrary element ID.
The factory methods of the (sub)component implementing this interface should take the identifier as the first argument.
-
Method Summary
Methods inherited from interface org.jboss.elemento.TypedBuilder
that
-
Method Details
-
identifier
String identifier()
-