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
Methods
ActionListId(ITableModel)
public static string ActionListId(ITableModel table)
Parameters
tableITableModel
Returns
BodyId(ITableModel)
public static string BodyId(ITableModel table)
Parameters
tableITableModel
Returns
BodySelector(string)
public static string BodySelector(string componentId)
Parameters
componentIdstring
Returns
ContainerId(ITableModel)
public static string ContainerId(ITableModel table)
Parameters
tableITableModel
Returns
EditToggleId(ITableModel)
public static string EditToggleId(ITableModel table)
Parameters
tableITableModel
Returns
Ensure(string?)
public static string Ensure(string? componentId = null)
Parameters
componentIdstring
Returns
FilterInputId(ITableColumnModel, string?)
public static string FilterInputId(ITableColumnModel column, string? suffix = null)
Parameters
columnITableColumnModelsuffixstring
Returns
FilterRowId(ITableModel)
public static string FilterRowId(ITableModel table)
Parameters
tableITableModel
Returns
FormStatePartition(string)
public static string FormStatePartition(string componentId)
Parameters
componentIdstring
Returns
HeaderId(ITableModel)
public static string HeaderId(ITableModel table)
Parameters
tableITableModel
Returns
HxVals(string, params (string Key, object? Value)[])
public static string HxVals(string componentId, params (string Key, object? Value)[] values)
Parameters
Returns
InputId(string, string, string)
public static string InputId(string componentId, string typeId, string inputId)
Parameters
Returns
PageInputId(ITableModel)
public static string PageInputId(ITableModel table)
Parameters
tableITableModel
Returns
PageSizeInputId(ITableModel)
public static string PageSizeInputId(ITableModel table)
Parameters
tableITableModel
Returns
PaginationId(ITableModel)
public static string PaginationId(ITableModel table)
Parameters
tableITableModel
Returns
RowId(ITableModel, ITableRowContext)
public static string RowId(ITableModel table, ITableRowContext row)
Parameters
tableITableModelrowITableRowContext
Returns
TableStatePartition(string)
public static string TableStatePartition(string componentId)
Parameters
componentIdstring
Returns
WithScopedHxVals(ActionModel, string)
public static Dictionary<string, string> WithScopedHxVals(ActionModel action, string componentId)
Parameters
actionActionModelcomponentIdstring