Class StudioSlotComponentProcessor
java.lang.Object
io.jmix.flowui.kit.meta.component.preview.processor.StudioSlotComponentProcessor
- All Implemented Interfaces:
StudioPreviewComponentProcessor,StudioPreviewSlotProcessor
Studio preview processor for slot-hinted attachment points that a parent+child type pair alone
cannot disambiguate:
HasPrefix/HasSuffix single-component slots and
AppLayout navbar/drawer/content slots.-
Field Summary
Fields inherited from interface io.jmix.flowui.kit.meta.component.preview.StudioPreviewSlotProcessor
CONTENT_SLOT, DRAWER_SLOT, NAVBAR_SLOT, PREFIX_SLOT, SUFFIX_SLOT -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
StudioSlotComponentProcessor
public StudioSlotComponentProcessor()
-
-
Method Details
-
addToSlot
public boolean addToSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index, String slotHint) Description copied from interface:StudioPreviewSlotProcessorAttacheschildtoparent'sslotHintslot.- Specified by:
addToSlotin interfaceStudioPreviewSlotProcessor- Parameters:
index- target index, or a negative value to append- Returns:
trueif handled
-
removeFromSlot
public boolean removeFromSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, String slotHint) Description copied from interface:StudioPreviewSlotProcessorDetacheschildfromparent'sslotHintslot.- Specified by:
removeFromSlotin interfaceStudioPreviewSlotProcessor- Returns:
trueif handled
-