com.vaadin.flow.component.grid.contextmenu.

Class GridContextMenu.GridContextMenuOpenedEvent<T>

    • Constructor Detail

      • GridContextMenuOpenedEvent

        public GridContextMenuOpenedEvent(GridContextMenu<T> source,
                                          boolean fromClient)
    • Method Detail

      • getItem

        public Optional<T> getItem()

        Gets the item in the Grid that was the target of the context-click, or an empty Optional if the context-click didn't target any item in the Grid (eg. if targeting a header).

        Returns:

        the target item of the context-click

      • getColumnId

        public Optional<String> getColumnId()

        Gets the column ID in the Grid that was the target of the context-click, or an empty Optional if the context-click didn't target any application column in the Grid (eg. selection column).

        Returns:

        the target item of the context-click