office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
27 lines (26 loc) • 927 B
TypeScript
import * as React from 'react';
import { IDocumentCardTitleProps } from './DocumentCard.Props';
import './DocumentCardTitle.scss';
export interface IDocumentCardTitleState {
truncatedTitleFirstPiece?: string;
truncatedTitleSecondPiece?: string;
}
export declare class DocumentCardTitle extends React.Component<IDocumentCardTitleProps, IDocumentCardTitleState> {
refs: {
[key: string]: React.ReactInstance;
titleElement: HTMLElement;
};
private _events;
private _scrollTimerId;
private _truncatedTitleAtWidth;
constructor(props: IDocumentCardTitleProps);
componentDidMount(): void;
componentWillUnmount(): void;
componentWillReceiveProps(newProps: IDocumentCardTitleProps): void;
componentDidUpdate(): void;
render(): JSX.Element;
private _startTruncation();
private _shrinkTitle();
private _doesTitleOverflow();
private _updateTruncation();
}