src/dialog/dialog-config.interface.ts
Data structure for definig properties of a Dialog component.
Properties |
[propName: string]:
|
|
Defined in src/dialog/dialog-config.interface.ts:41
|
| appendInline |
appendInline:
|
Type : boolean
|
|
Defined in src/dialog/dialog-config.interface.ts:37
|
|
Set to |
| content |
content:
|
Type : string | TemplateRef
|
|
Defined in src/dialog/dialog-config.interface.ts:14
|
|
Body content for the |
| data |
data:
|
Type : Object
|
|
Defined in src/dialog/dialog-config.interface.ts:41
|
|
Config object passed to the rendered component. (Optional) |
| gap |
gap:
|
Type : number
|
|
Defined in src/dialog/dialog-config.interface.ts:29
|
|
Used to set the offset of the |
| parentRef |
parentRef:
|
Type : ElementRef
|
|
Defined in src/dialog/dialog-config.interface.ts:33
|
|
Reference to the Parent element that links the |
| placement |
placement:
|
Type : string
|
|
Defined in src/dialog/dialog-config.interface.ts:24
|
|
Parameter defining the placement in which the |
| title |
title:
|
Type : string
|
|
Defined in src/dialog/dialog-config.interface.ts:10
|
|
Title for the |
| trigger |
trigger:
|
Type : "click" | "hover" | "mouseenter"
|
|
Defined in src/dialog/dialog-config.interface.ts:19
|
|
Parameter for triggering |
import { ElementRef, TemplateRef } from "@angular/core";
/**
* Data structure for definig properties of a `Dialog` component.
**/
export interface DialogConfig {
/**
* Title for the `Dialog` header.
*/
title: string;
/**
* Body content for the `Dialog`.
*/
content: string | TemplateRef<any>;
/**
* Parameter for triggering `Dialog` display.
* With the release of v2.0 the type will just be "click" or "hover".
*/
trigger: "click" | "hover" | "mouseenter";
/**
* Parameter defining the placement in which the `Dialog` appears.
* @type {Placement}
*/
placement: string;
/**
* Used to set the offset of the `Dialog` relative to the content it
* is associated to.
*/
gap: number;
/**
* Reference to the Parent element that links the `Dialog`.
*/
parentRef: ElementRef;
/**
* Set to `true` to open the dialog next to the triggering component
*/
appendInline: boolean;
/**
* Config object passed to the rendered component. (Optional)
*/
data: Object;
[propName: string]: any;
}