///
/**
* Render an anchor element that opens an entity form.
* Uses the context to obtain Xrm variable or tries to obtain it
* by looking at the parent namespace. An additional onClick will
* also be called *before* opening the window. Adds "crmLink" to the
* the classnames.
* Props: id, entityName(singular), parameters, windowParameters,
* openInNewWindow (boolean, default is true, added to windowParmeters if present), className.
*/
import * as React from "react";
import { DynamicsContext } from "../Dynamics/Dynamics";
import { XRM } from "../Dynamics";
import * as PropTypes from "prop-types";
export interface Props {
entityName: string;
id: string;
openInNewWindow?: boolean;
windowPosition?: number;
height?: number;
width?: number;
onClick?: (e: any) => void;
xrm?: XRM;
className?: string;
}
export declare class EntityLink extends React.Component {
constructor(props: Props, context: any);
context: DynamicsContext;
static contextTypes: {
xrm: PropTypes.Requireable;
};
handleClick: (e: any) => void;
render(): JSX.Element;
}
export default EntityLink;