Unplanned
Last Updated: 13 Oct 2022 07:18 by Ross
Ross
Created on: 13 Oct 2022 07:18
Category: Grid
Type: Feature Request
0
Styling configuration options for Grid's command buttons

Expose configuration options for setting the options - Size, ThemeColor, FillMode and Rounded - of the Grid's command buttons and toolbar buttons, as possible for a simple Button component.

Adding a separate configuration for the Cancel command button would also be beneficial. For example:

    .Columns(columns => {   
        columns.Bound(p => p.ProductName);
        columns.Bound(p => p.UnitPrice).Width(140);
        columns.Bound(p => p.UnitsInStock).Width(140);
        columns.Bound(p => p.Discontinued).Width(100);
        columns.Command(command => command.Destroy().ThemeColor(ThemeColor.Error)).Width(150);
    })
    .ToolBar(toolbar => {
        toolbar.Create().ThemeColor(ThemeColor.Info).Size(ComponentSize.Large);
        toolbar.Save().ThemeColor(ThemeColor.Success);
        toolbar.Cancel().ThemeColor(ThemeColor.Warning);
    })

 

0 comments