Command
Command configuration:
.Columns(c =>
{
c.Command(c => c.IconClass("bi bi-trash").OnClick("onDelete").BtnClass("btn btn-sm btn-danger"));
c.Command(c => c.Text("Edit").OnClick("onDelete").BtnClass("btn btn-sm btn-success"));
})
Text¶
Set command text.
OnClick¶
Set onClick function name.
IconClass¶
Set icon css class.
BtnClass¶
Set button css class.
Width¶
Set percentage of column where the command is.