/// import * as React from 'react'; import { IFieldRendererProps } from '../FieldCommon/IFieldRendererProps'; export interface IFieldNameRendererProps extends IFieldRendererProps { /** * text to display */ text?: string; /** * if the Name should be rendered as link */ isLink: boolean; /** * path to the document */ filePath?: string; /** * true if the document is new */ isNew?: boolean; /** * true if the document type has preview (true by default) */ hasPreview?: boolean; /** * custom handler for link click. If not set link click will lead to rendering document preview */ onClick?: (args: IFieldNameClickEventArgs) => {}; } /** * For future */ export interface IFieldNameRendererState { } /** * Name click event arguments */ export interface IFieldNameClickEventArgs { filePath?: string; } /** * Field Title Renderer. * Used for: * - Title */ export default class FieldNameRenderer extends React.Component { constructor(props: IFieldNameRendererProps, state: IFieldNameRendererState); render(): JSX.Element; private _onClick(); }