Skip to content

Constants

When creating or modifying columns, use the ColumnTypes constants for type-safe column type references.

import { ColumnTypes } from 'seatable-api';

External client only

ColumnTypes comes from the seatable-api npm package. There is no import in the SeaTable script editor, so these constants are not available there. Since columns cannot be created or modified from a script anyway, this is not a limitation in practice -- see Columns.

ColumnTypes

Constant Column type
ColumnTypes.TEXT Text
ColumnTypes.LONG_TEXT Long text
ColumnTypes.NUMBER Number
ColumnTypes.CHECKBOX Checkbox
ColumnTypes.DATE Date & time
ColumnTypes.SINGLE_SELECT Single select
ColumnTypes.MULTIPLE_SELECT Multiple select
ColumnTypes.IMAGE Image
ColumnTypes.FILE File
ColumnTypes.COLLABORATOR Collaborator
ColumnTypes.LINK Link to other records
ColumnTypes.FORMULA Formula
ColumnTypes.CREATOR Creator
ColumnTypes.CTIME Created time
ColumnTypes.LAST_MODIFIER Last modifier
ColumnTypes.MTIME Modified time
ColumnTypes.GEOLOCATION Geolocation
ColumnTypes.AUTO_NUMBER Auto number
ColumnTypes.URL URL