Soenneker.DataTables.Attributes.Column
4.0.23
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.DataTables.Attributes.Column --version 4.0.23
NuGet\Install-Package Soenneker.DataTables.Attributes.Column -Version 4.0.23
<PackageReference Include="Soenneker.DataTables.Attributes.Column" Version="4.0.23" />
<PackageVersion Include="Soenneker.DataTables.Attributes.Column" Version="4.0.23" />
<PackageReference Include="Soenneker.DataTables.Attributes.Column" />
paket add Soenneker.DataTables.Attributes.Column --version 4.0.23
#r "nuget: Soenneker.DataTables.Attributes.Column, 4.0.23"
#:package Soenneker.DataTables.Attributes.Column@4.0.23
#addin nuget:?package=Soenneker.DataTables.Attributes.Column&version=4.0.23
#tool nuget:?package=Soenneker.DataTables.Attributes.Column&version=4.0.23
Soenneker.DataTables.Attributes.Column
Attribute for defining DataTables column configuration metadata on properties or classes. This allows customization of column behavior, rendering, visibility, sorting, and more.
Install
dotnet add package Soenneker.DataTables.Attributes.Column
Quick start
using Soenneker.DataTables.Attributes.Column;
public sealed class Request
{
[DataTableColumn]
public string? Value { get; init; }
}
Attribute for defining DataTables column configuration metadata on properties or classes. This allows customization of column behavior, rendering, visibility, sorting, and more.
What you get
DataTableColumnAttribute— Attribute for defining DataTables column configuration metadata on properties or classes. This allows customization of column behavior, rendering, visibility, sorting, and more.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
DataTableColumnAttribute.AriaTitle |
Sets the ARIA label for the column header, used for accessibility purposes. | Sets the ARIA label for the column header, used for accessibility purposes. |
DataTableColumnAttribute.CellType |
Specifies the HTML cell type to be created for this column (e.g., "td", "th"). | Specifies the HTML cell type to be created for this column (e.g., "td", "th"). |
DataTableColumnAttribute.ClassName |
A CSS class or space-separated list of classes to assign to each cell in the column. | A CSS class or space-separated list of classes to assign to each cell in the column. |
DataTableColumnAttribute.ContentPadding |
Additional padding to add to the text content when calculating optimal column width. | Additional padding to add to the text content when calculating optimal column width. |
DataTableColumnAttribute.DefaultContent |
Default static content to render in this column when no data is available. | Default static content to render in this column when no data is available. |
DataTableColumnAttribute.Footer |
Sets the footer text content for this column. | Sets the footer text content for this column. |
DataTableColumnAttribute.Name |
A name used for identifying the column programmatically (e.g., in column visibility APIs). | A name used for identifying the column programmatically (e.g., in column visibility APIs). |
DataTableColumnAttribute.Orderable |
Determines whether sorting is enabled on this column. | Determines whether sorting is enabled on this column. |
DataTableColumnAttribute.OrderData |
Specifies other columns to sort alongside this one. Can be an integer index or an array of indices. | Specifies other columns to sort alongside this one. Can be an integer index or an array of indices. |
DataTableColumnAttribute.OrderDataType |
Defines a custom sort data type for the column (e.g., "dom-text", "dom-checkbox"). | Defines a custom sort data type for the column (e.g., "dom-text", "dom-checkbox"). |
DataTableColumnAttribute.OrderSequence |
A sequence of sorting directions (e.g., ["asc", "desc"]) to apply in order when sorting this column. | A sequence of sorting directions (e.g., ["asc", "desc"]) to apply in order when sorting this column. |
DataTableColumnAttribute.Searchable |
Determines whether this column can be searched using the global search box. | Determines whether this column can be searched using the global search box. |
DataTableColumnAttribute.Title |
Sets the column title displayed in the table header. | Sets the column title displayed in the table header. |
DataTableColumnAttribute.Type |
Sets the column's internal data type (used for filtering and sorting logic). | Sets the column's internal data type (used for filtering and sorting logic). |
DataTableColumnAttribute.Visible |
Indicates whether this column is visible in the table. | Indicates whether this column is visible in the table. |
DataTableColumnAttribute.Width |
Sets the fixed width for this column (e.g., "100px", "10%"). | Sets the fixed width for this column (e.g., "100px", "10%"). |
DataTableColumnAttribute.Data |
Specifies the data source for the column. Can be a property path (e.g., "user.email") or a static value. | Specifies the data source for the column. Can be a property path (e.g., "user.email") or a static value. |
DataTableColumnAttribute.ResponsivePriority |
Defines the priority for column visibility when using the DataTables Responsive extension. Lower values have higher priority and are shown first on smaller screens. Columns with higher values will be hidden first as screen space becomes limited. | Defines the priority for column visibility when using the DataTables Responsive extension. Lower values have higher priority and are shown first on smaller screens. Columns with higher values will be hidden first as screen space becomes limited. |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.DataTables.Attributes.Column:
| Package | Downloads |
|---|---|
|
Soenneker.DataTables.Extensions.Types
A collection of helpful Type extension methods relating to DataTable.js |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.37 | 72 | 10/26/2026 |
| 4.0.36 | 239 | 10/14/2026 |
| 4.0.35 | 124 | 10/14/2026 |
| 4.0.34 | 89 | 10/14/2026 |
| 4.0.33 | 107 | 10/13/2026 |
| 4.0.30 | 111 | 10/12/2026 |
| 4.0.29 | 103 | 10/12/2026 |
| 4.0.28 | 141 | 10/11/2026 |
| 4.0.27 | 273 | 9/24/2026 |
| 4.0.26 | 236 | 9/15/2026 |
| 4.0.25 | 187 | 9/12/2026 |
| 4.0.24 | 279 | 8/30/2026 |
| 4.0.23 | 120 | 8/29/2026 |
| 4.0.22 | 546 | 7/27/2026 |
| 4.0.21 | 370 | 7/16/2026 |
| 4.0.20 | 583 | 6/18/2026 |
| 4.0.19 | 473 | 6/5/2026 |
| 4.0.18 | 498 | 4/22/2026 |
| 4.0.17 | 230 | 3/12/2026 |
| 4.0.16 | 138 | 3/12/2026 |
Improve README usability and API guidance