terra-table
Version:
The Terra Table component provides user a way to display data in an accessible table format.
16 lines (13 loc) • 613 B
JavaScript
const ERRORS = {
ROW_HEADER_INDEX_EXCEEDS_PINNED: 'Prop rowHeaderIndex exceeds the size of pinnedColumns.',
ROW_HEADER_INDEX_LESS_THAN_MINUS_ONE: 'Prop rowHeaderIndex must be either -1 or a positive integer.',
ROW_HEADER_INDEX_NOT_AN_INTEGER: 'Prop rowHeaderIndex must be an integer.',
ACTION_LABEL_MISSING: 'Column action must have label property.',
ACTION_ONCLICK_MISSING: 'Column action must have onClick callback.',
ACTION_ONCLICK_IS_NOT_A_FUNCTION: 'Column action onClick property type is not a function.',
};
const SUBSECTION_HEADER_LEVEL = 3;
export {
ERRORS,
SUBSECTION_HEADER_LEVEL,
};