@blueprintjs/datetime
Version:
Components for interacting with dates and times
7 lines (6 loc) • 367 B
TypeScript
/**
* Measure width in pixels of a string displayed with styles provided by `className`.
* Should only be used if measuring can't be done with existing DOM elements.
*/
export declare function measureTextWidth(text: string, className?: string, containerElement?: HTMLElement): number;
export declare function padWithZeroes(str: string, minLength: number): string;