addColumn Function
TheaddColumn function accepts an object as an argument.
internal_key(String) - required: The internal key used to access a column’s value.label(String) - required: The user-facing column label that is shown in the interface.column_type(String) - required: Should be “email”.required(String) - required: Whether or not the column is required.position(Optional): The position or order of the column.unique(Optional): Whether values should be unique.validations(Optional): An array of built-in data validations. See Built-in Email Validations.
Example Code
- JavaScript
- TypeScript
Built-in Email Validations
The options property ofaddColumn accepts an array of validations. Each validation has three properties:
validation_type:the name of the validationmessage:the message showed to the end user if the validation failsoptions:options for the specific validation type
validation_type, message and options. As the example below: