-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathNimbleTableColumn.cs
38 lines (32 loc) · 1.26 KB
/
NimbleTableColumn.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Microsoft.AspNetCore.Components;
namespace NimbleBlazor;
public abstract class NimbleTableColumn : ComponentBase
{
/// <summary>
/// The ID of the column of a <see cref="NimbleTable{TData}"/>
/// </summary>
[Parameter]
public string? ColumnId { get; set; }
/// <summary>
/// The name of the slot containing the menu associated with this column.
/// If not specified, no action menu will be associated with this column.
/// </summary>
[Parameter]
public string? ActionMenuSlot { get; set; }
/// <summary>
/// The label to associate with the action menu on this column for accessibility purposes.
/// This should be specified if <see cref="ActionMenuSlot" /> is specified, but should not be specified otherwise.
/// </summary>
[Parameter]
public string? ActionMenuLabel { get; set; }
/// <summary>
/// Whether or not the column should be hidden within a <see cref="NimbleTable{TData}"/>.
/// </summary>
[Parameter]
public bool? ColumnHidden { get; set; }
/// <summary>
/// Gets or sets any additional attributes to set on the element.
/// </summary>
[Parameter(CaptureUnmatchedValues = true)]
public IDictionary<string, object>? AdditionalAttributes { get; set; }
}