Skip to content

Commit

Permalink
Better context menu demo text
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Jan 24, 2025
1 parent 46bb4e8 commit b4dff60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/examples/contextmenus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func main() {
})

contextMenu := application.NewContextMenu("test")
clickMe := contextMenu.Add("Set Menuitem label to Context Data")
contextDataMenuItem := contextMenu.Add("No Context Data")
clickMe := contextMenu.Add("Click to set Menuitem label to Context Data")
contextDataMenuItem := contextMenu.Add("Current context data: No Context Data")
clickMe.OnClick(func(data *application.Context) {
app.Logger.Info("Context menu", "context data", data.ContextMenuData())
contextDataMenuItem.SetLabel("Current context data: " + data.ContextMenuData())
Expand Down

0 comments on commit b4dff60

Please sign in to comment.