Is it possible to call a Javascript with parameters when the user presses a button in the toolbar?
I can use the .Click() and the javascript is called but I can't figure out how to pass the parameters?
I als tried.....
.Items(items =>
{
items.Add().Type(CommandType.Button).Text(Model.ToolbarSettings.NewButton.Text).Icon("plus")
.Hidden(!Model.ToolbarSettings.NewButton.IsVisible).Enable(Model.ToolbarSettings.NewButton.IsEnabled)
.HtmlAttributes(new { type ="button", Id = "aa" })
.Click("onClick")
But how can I read the Id value in the javascript?
I want pass two parameters to the script (action/controller)......