UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

16 lines (15 loc) 591 B
/*! * KoliBri - The accessible HTML-Standard */ import { watchValidator } from "../utils"; export const validateFixedCols = (component, value) => { watchValidator(component, '_fixedCols', (value) => Array.isArray(value) && value.length === 2 && typeof value[0] === 'number' && typeof value[1] === 'number' && Number.isInteger(value[0]) && Number.isInteger(value[1]) && value[0] >= 0 && value[1] >= 0, new Set(['FixedColsPropType [leftFixed: number, rightFixed: number]']), value); }; //# sourceMappingURL=table-fixed-cols.js.map