Interface ComponentContextProvider<T>

    • Method Detail

      • provide

        Iterable<T> provide​(Page page)
        Provide the contextual items for the given page.
        Parameters:
        page - The page in which the component will be inserted.
        Returns:
        The options for the given slot.
      • present

        default String present​(T item)
        Presents the given item (returned by the provide(Page) method). By default, simply invokes Object.toString().
        Parameters:
        item - The item to present.
        Returns:
        The presentation of the given item.