-
Notifications
You must be signed in to change notification settings - Fork 802
Grid WidthAttribute [Columns]
Victor Tomaili edited this page May 3, 2021
·
1 revision
[namespace: Serenity.ComponentModel] - [assembly: Serenity.Core]
This attribute can be used on a column field to specify the width of the column. Is also possible specify a max and min value for the width.
Attribute definition:
public class WidthAttribute : Attribute
{
public WidthAttribute(int value);
public int Max { get; set; }
public int Min { get; set; }
public int Value { get; }
}
Use
public class ProductColumns
{
[Width(150)]
public String ProductID { get; set; }
[Width(250, Max = 400, Min = 150)]
public String ProductName { get; set; }
[...]
Copyright © Serenity Platform 2017-present. All rights reserved.
Documentation | Serene Template | Live Demo | Premium Support | Issues | Discussions