Hello,
Is it possible to change the text of a MenuItem of a EjsMenu control?
I tried something like this without success:
<EjsMenu Items="@_menuItems">
<MenuEvents ItemSelected="MenuItemSelected" />
</EjsMenu>
private List<MenuItem> _menuItems = new List<MenuItem>
{
new MenuItem{ Text = "Item 1" },
new MenuItem{ Text = "Item 2" },
new MenuItem{ Text = "Item 3" }
};
In a button click:
_menuItems[1].Text = "Test";
StateHasChanged();
Thank you