LP#1831781: tweaks to eg-help-popover
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / share / eg-help-popover / eg-help-popover.component.ts
index 77d8fd6..ffad186 100644 (file)
@@ -2,24 +2,31 @@ import { Component, OnInit, Input } from '@angular/core';
 import {NgbPopover} from '@ng-bootstrap/ng-bootstrap';
 
 @Component({
-  selector: 'eg-help-popover',
-  templateUrl: './eg-help-popover.component.html',
-  styleUrls: ['./eg-help-popover.component.css']
+    selector: 'eg-help-popover',
+    templateUrl: './eg-help-popover.component.html',
+    styleUrls: ['./eg-help-popover.component.css']
 })
 export class EgHelpPopoverComponent implements OnInit {
 
-  @Input()
-  helpText = '';
+    // The text to display in the popover
+    @Input()
+    helpText = '';
 
-  @Input()
-  helpLink = '';
+    // An optional link to include in the popover. If supplied,
+    // the entire helpText is wrapped in it
+    @Input()
+    helpLink = '';
 
-  @Input()
-  placement = '';
+    // placement value passed to ngbPopover that controls
+    // where the popover is displayed. Values include
+    // 'auto', 'right', 'left', 'top-left', 'bottom-right',
+    // 'top', and so forth.
+    @Input()
+    placement = '';
 
-  constructor() { }
+    constructor() { }
 
-  ngOnInit() {
-  }
+    ngOnInit() {
+    }
 
 }