summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/popover/popover.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/popover/popover.component.ts')
-rw-r--r--vid-webpack-master/src/app/shared/components/popover/popover.component.ts34
1 files changed, 23 insertions, 11 deletions
diff --git a/vid-webpack-master/src/app/shared/components/popover/popover.component.ts b/vid-webpack-master/src/app/shared/components/popover/popover.component.ts
index d6a4c3ae1..9dbbe63a5 100644
--- a/vid-webpack-master/src/app/shared/components/popover/popover.component.ts
+++ b/vid-webpack-master/src/app/shared/components/popover/popover.component.ts
@@ -1,17 +1,29 @@
import {Component, Input} from "@angular/core";
-
@Component({
selector: 'custom-popover',
- templateUrl: 'popover.component.html',
- styles: [`
- :host >>> .popover {
- font-size: 13px;
- text-align: left;
- z-index: 10000;
- }
- `]
+ templateUrl: 'popover.component.html'
})
-export class PopoverComponent {
- @Input() value: String;
+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'
+}
+