Table of Contents

Class TableComponentIdentity

Namespace
Htmx.Components.Table
Assembly
Htmx.Components.dll

Generates and resolves stable table component ids, DOM ids, request values, and state partitions.

public static class TableComponentIdentity
Inheritance
TableComponentIdentity
Inherited Members

Fields

ComponentIdField

public const string ComponentIdField = "componentId"

Field Value

string

Methods

ActionListId(ITableModel)

public static string ActionListId(ITableModel table)

Parameters

table ITableModel

Returns

string

BodyId(ITableModel)

public static string BodyId(ITableModel table)

Parameters

table ITableModel

Returns

string

BodySelector(string)

public static string BodySelector(string componentId)

Parameters

componentId string

Returns

string

ContainerId(ITableModel)

public static string ContainerId(ITableModel table)

Parameters

table ITableModel

Returns

string

EditToggleId(ITableModel)

public static string EditToggleId(ITableModel table)

Parameters

table ITableModel

Returns

string

Ensure(string?)

public static string Ensure(string? componentId = null)

Parameters

componentId string

Returns

string

FilterInputId(ITableColumnModel, string?)

public static string FilterInputId(ITableColumnModel column, string? suffix = null)

Parameters

column ITableColumnModel
suffix string

Returns

string

FilterRowId(ITableModel)

public static string FilterRowId(ITableModel table)

Parameters

table ITableModel

Returns

string

FormStatePartition(string)

public static string FormStatePartition(string componentId)

Parameters

componentId string

Returns

string

HeaderId(ITableModel)

public static string HeaderId(ITableModel table)

Parameters

table ITableModel

Returns

string

HxVals(string, params (string Key, object? Value)[])

public static string HxVals(string componentId, params (string Key, object? Value)[] values)

Parameters

componentId string
values (string Key, object Value)[]

Returns

string

InputId(string, string, string)

public static string InputId(string componentId, string typeId, string inputId)

Parameters

componentId string
typeId string
inputId string

Returns

string

PageInputId(ITableModel)

public static string PageInputId(ITableModel table)

Parameters

table ITableModel

Returns

string

PageSizeInputId(ITableModel)

public static string PageSizeInputId(ITableModel table)

Parameters

table ITableModel

Returns

string

PaginationId(ITableModel)

public static string PaginationId(ITableModel table)

Parameters

table ITableModel

Returns

string

RowId(ITableModel, ITableRowContext)

public static string RowId(ITableModel table, ITableRowContext row)

Parameters

table ITableModel
row ITableRowContext

Returns

string

TableStatePartition(string)

public static string TableStatePartition(string componentId)

Parameters

componentId string

Returns

string

WithScopedHxVals(ActionModel, string)

public static Dictionary<string, string> WithScopedHxVals(ActionModel action, string componentId)

Parameters

action ActionModel
componentId string

Returns

Dictionary<string, string>