Table of Contents

Interface ITrinityColumn

Namespace
AbanoubNassem.Trinity.Components.Interfaces
Assembly
AbanoubNassem.Trinity.dll

TrinityTable Column.

public interface ITrinityColumn : ITrinityComponent
Inherited Members

Properties

ColumnName

The column name in the table.

string ColumnName { get; set; }

Property Value

string

IsGloballySearchable

Whether the column is globally searched within the table , or should have it's own search input.

bool IsGloballySearchable { get; set; }

Property Value

bool

Methods

Filter(Query, string)

Filters the data in this column according to the specified query and search term.

void Filter(Query query, string search)

Parameters

query Query

The query used for filtering.

search string

The search term used for filtering.

Format()

How a column is formatted after it is retrieved from the database, but before it is sent to the Trinity front-end.

void Format()

SelectQuery(Query)

How a column is being selected from the database.

void SelectQuery(Query query)

Parameters

query Query

the query being applied to the database.

SetRecord(IDictionary<string, object?>)

Setting the record after it's retrieved from the database.

void SetRecord(IDictionary<string, object?> record)

Parameters

record IDictionary<string, object>

The record retrieved from the database.

Sort(Query, string)

Sorts the data in this column according to the specified query and sorting direction.

void Sort(Query query, string direction)

Parameters

query Query

The query used for sorting.

direction string

The sorting direction ("ASC" for ascending, "DESC" for descending).