UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

23 lines (22 loc) 859 B
/// <reference types="react" /> import { BaseComponent } from '../../Utilities'; import { IDocumentCardTitleProps } from './DocumentCard.types'; export interface IDocumentCardTitleState { truncatedTitleFirstPiece?: string; truncatedTitleSecondPiece?: string; } export declare class DocumentCardTitle extends BaseComponent<IDocumentCardTitleProps, IDocumentCardTitleState> { private _titleElement; private _scrollTimerId; private _truncatedTitleAtWidth; private _isTruncated; constructor(props: IDocumentCardTitleProps); componentDidMount(): void; componentWillReceiveProps(newProps: IDocumentCardTitleProps): void; componentDidUpdate(): void; render(): JSX.Element; private _startTruncation; private _shrinkTitle(); private _doesTitleOverflow(); private _updateTruncation(); }