1 | import * as React from "react";
|
2 | import { AbstractPureComponent2 } from "../../common";
|
3 | import { Props } from "../../common/props";
|
4 | export declare type TextProps = ITextProps;
|
5 |
|
6 | export interface ITextProps extends Props {
|
7 | |
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | ellipsize?: boolean;
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 | tagName?: keyof JSX.IntrinsicElements;
|
20 | |
21 |
|
22 |
|
23 | title?: string;
|
24 | }
|
25 | export interface ITextState {
|
26 | textContent: string;
|
27 | isContentOverflowing: boolean;
|
28 | }
|
29 | export declare class Text extends AbstractPureComponent2<TextProps, ITextState> {
|
30 | static displayName: string;
|
31 | static defaultProps: Partial<TextProps>;
|
32 | state: ITextState;
|
33 | private textRef;
|
34 | componentDidMount(): void;
|
35 | componentDidUpdate(): void;
|
36 | render(): React.ReactElement<{
|
37 | className: string;
|
38 | ref: (ref: HTMLElement | null) => HTMLElement | null;
|
39 | title: string | undefined;
|
40 | }, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
41 | private update;
|
42 | }
|
43 |
|
\ | No newline at end of file |