blob: 9dbbe63a53b8c279dc5ea4a8e6e9bd5b01a708b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import {Component, Input} from "@angular/core";
@Component({
selector: 'custom-popover',
templateUrl: 'popover.component.html'
})
export class PopoverComponent{
@Input() value: string;
@Input() extraStyle : string;
@Input() placement : string = PopoverPlacement.LEFT;
@Input() popoverType : string = PopoverType.CUSTOM;
}
export enum PopoverPlacement{
TOP = 'top',
BOTTOM = 'bottom',
LEFT = 'left',
RIGHT = 'right',
AUTO ='auto',
}
export enum PopoverType {
ERROR = 'error',
WARNING = 'warning',
SUCCESS = 'success',
CUSTOM = 'custom'
}
|