@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
21 lines (20 loc) • 614 B
TypeScript
/**
* LinkTypeConfig base interface
* @description This interface contains configuration to be passed to handler function
*/
export interface LinkTypeConfig {
/**
* Open new URL in new window
*/
openNewWindow?: boolean;
/**
* Fallback function to call if other providers not available/applicable.
*
* If fallback is not available and the directive is used on `<a>` tag, the directive will use the `href` and `target` attribute instead.
*/
fallback?: () => void;
/**
* onClick function to call for registering analytics.
*/
onClick?: () => void;
}