UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

19 lines 963 B
import { SchemaPropertyInfo } from '@/utils/jsonschema/getSchemaPropertyInfo'; export type HeaderOptions = { showPinIcon?: boolean; hasDescription?: boolean; }; /** * Calculates the default width for a column based on its name and schema property info. * The width is determined by: * - A base minimum width (175px for most columns, 215px for date-time columns) * - Character-based calculation (11px per character in the column name) * - Additional width for header icons (pin icon, help tooltip) * * @param columnName - The name of the column * @param propertyInfo - Optional schema property information for the column * @param headerOptions - Optional header content options that affect width * @returns The calculated column width in pixels */ export declare function calculateDefaultColumnWidth(columnName: string, propertyInfo?: SchemaPropertyInfo, headerOptions?: HeaderOptions): number; //# sourceMappingURL=calculateColumnWidth.d.ts.map