UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

22 lines (21 loc) 812 B
import { BaseComponent } from '../../Utilities'; import { IDocumentCardTitleProps } from './DocumentCard.Props'; 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(props); private _shrinkTitle(); private _doesTitleOverflow(); private _updateTruncation(); }