@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
30 lines (29 loc) • 909 B
TypeScript
import { ElementRef, TemplateRef } from '@angular/core';
import { TooltipPlacement } from './tooltip-placement';
/**
* Defines the various ways a tooltip can be shown. This is defined as a bitflag so we can support multiple options within one number
* further additions here should follow this format (i.e. next enum entry would be 8)
*/
export declare enum TooltipShowMode {
Hover = 1,
Click = 2,
KeyboardFocus = 4
}
/**
* The options that define a tooltip
*/
export interface TooltipOptions {
targetid: string;
contentId: string;
title: string;
template: TemplateRef<any>;
context: any;
restoreFocusTo: HTMLElement;
placement: TooltipPlacement;
element: ElementRef;
onStateChanged: MsftSme.Action;
onWindowClick: MsftSme.Action;
showOn: TooltipShowMode;
shouldRead: boolean;
triggeredFrom: TooltipShowMode;
}