Skip to main content
Version: v2

Column Interface

A column in a table.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature​

/** @sealed */
interface Column<TCell extends ImplicitAllowedTypes, TProps extends ImplicitFieldSchema = ImplicitFieldSchema>

Type Parameters​

ParameterConstraintDefaultDescription
TCellImplicitAllowedTypesThe type of the cells in the Table.
TPropsImplicitFieldSchemaImplicitFieldSchemaAdditional properties to associate with the column.

Remarks​

Implemented by the schema class returned from column(params).

Properties​

PropertyAlertsModifiersTypeDescription
idBetareadonlystringThe unique identifier of the column.
propsBetaTreeFieldFromImplicitField<TProps>The column's properties.

Property Details​

id​

The unique identifier of the column.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly id: string;

Type: string

Remarks​

Uniquely identifies the node within the entire tree, not just the table.

props​

The column's properties.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

get props(): TreeFieldFromImplicitField<TProps>;

set props(value: InsertableTreeFieldFromImplicitField<TProps>);

Type: TreeFieldFromImplicitField<TProps>

Remarks​

This is a user-defined schema that can be used to store additional information about the column.