///
import * as React from 'react';
import { IFieldRendererProps } from '../Common/IFieldRendererProps';
export interface INameRendererProps 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: INameClickEventArgs) => {};
}
/**
* For future
*/
export interface INameRendererState {
}
/**
* Name click event arguments
*/
export interface INameClickEventArgs {
filePath?: string;
}
/**
* Field Title Renderer.
* Used for:
* - Title
*/
export default class NameRenderer extends React.Component {
constructor(props: INameRendererProps, state: INameRendererState);
render(): JSX.Element;
private _onClick();
}