onPopulateItemMenu Property

onPopulateItemMenu

Set this callback to populate context menu for each list item. It gets passed the event, the item's context and its index.

Declaration
public Action<ContextualMenuPopulateEvent, VisualElement, int> onPopulateItemMenu { get; set; }
Property Value
Action<ContextualMenuPopulateEvent, VisualElement, Int32>