Skip to content

Command Group

Command Group configuration:

.Columns(c =>
{
    c.CommandGroup(cg => cg
        .Text("Report").BtnClass("btn btn-sm btn-secondary").Width("1%")
        .Item("Excel", "getReport")
        .Item("Pdf", "getReport"));
})

Text

Set command text.

.Text("Report")

IconClass

Set icon css class.

.IconClass("bi bi-file-pdf")

BtnClass

Set button css class.

.BtnClass("btn btn-sm btn-secondary")

Width

Set percentage of column where the command is.

.Width("1%")

Item

Add a Command Group item.

.Item("Excel", "getReport")