Interface StudioPreviewSlotProcessor

All Superinterfaces:
StudioPreviewComponentProcessor
All Known Implementing Classes:
StudioSlotComponentProcessor

public interface StudioPreviewSlotProcessor extends StudioPreviewComponentProcessor
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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addToSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index, String slotHint)
    Attaches child to parent's slotHint slot.
    boolean
    removeFromSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, String slotHint)
    Detaches child from parent's slotHint slot.
  • Field Details

  • Method Details

    • addToSlot

      boolean addToSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index, String slotHint)
      Attaches child to parent's slotHint slot.
      Parameters:
      index - target index, or a negative value to append
      Returns:
      true if handled
    • removeFromSlot

      boolean removeFromSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, String slotHint)
      Detaches child from parent's slotHint slot.
      Returns:
      true if handled