Soenneker.DataTables.Attributes.Column 4.0.23

Prefix Reserved
There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.DataTables.Attributes.Column" Version="4.0.23" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.DataTables.Attributes.Column" Version="4.0.23" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.DataTables.Attributes.Column" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.DataTables.Attributes.Column --version 4.0.23
                    
#r "nuget: Soenneker.DataTables.Attributes.Column, 4.0.23"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.DataTables.Attributes.Column@4.0.23
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.DataTables.Attributes.Column&version=4.0.23
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.DataTables.Attributes.Column&version=4.0.23
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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
Loading failed

Improve README usability and API guidance