Interface StudioPreviewSlotProcessor
- All Superinterfaces:
StudioPreviewComponentProcessor
- All Known Implementing Classes:
StudioSlotComponentProcessor
Attaches/detaches a child to/from a named slot (e.g.
"prefix", "navbar") of a
parent, for containers a parent+child type pair alone cannot disambiguate.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index, String slotHint) Attacheschildtoparent'sslotHintslot.booleanremoveFromSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, String slotHint) Detacheschildfromparent'sslotHintslot.
-
Field Details
-
PREFIX_SLOT
- See Also:
-
SUFFIX_SLOT
- See Also:
-
NAVBAR_SLOT
- See Also:
-
DRAWER_SLOT
- See Also:
-
CONTENT_SLOT
- See Also:
-
-
Method Details
-
addToSlot
boolean addToSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index, String slotHint) Attacheschildtoparent'sslotHintslot.- Parameters:
index- target index, or a negative value to append- Returns:
trueif handled
-
removeFromSlot
boolean removeFromSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, String slotHint) Detacheschildfromparent'sslotHintslot.- Returns:
trueif handled
-