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() {
+ }
}