smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
26 lines (25 loc) • 717 B
TypeScript
import { TooltipAttributes } from "../types/tooltip";
export default class TooltipHelper {
private static positionOrder;
/**
* Calculates tooltip position by the given position status.
*
* @param target
* @param container
* @param global
* @param position
* @param header
* @param arrow
*/
private static getPosition;
/**
* Gets tooltip attributes.
*
* @param target
* @param container
* @param position
* @param header
* @param arrow
*/
static getAttributes(target: HTMLElement, container: HTMLElement, position: string, header?: HTMLElement, arrow?: HTMLElement): TooltipAttributes;
}