mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
97399 Improvements to ContextHelpDirective and ContextHelpWrapperComponent
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
import { Component, Input, OnInit, TemplateRef } from '@angular/core';
|
||||
import { PlacementArray } from '@ng-bootstrap/ng-bootstrap/util/positioning';
|
||||
import { PlacementDir } from './placement-dir.model';
|
||||
|
||||
// export type PlacementDir = 'left' | 'right';
|
||||
|
||||
export type PlacementDir = 'left' | 'right';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-context-help-wrapper',
|
||||
templateUrl: './context-help-wrapper.component.html',
|
||||
styleUrls: ['./context-help-wrapper.component.scss']
|
||||
styleUrls: ['./context-help-wrapper.component.scss'],
|
||||
})
|
||||
export class ContextHelpWrapperComponent implements OnInit {
|
||||
export class ContextHelpWrapperComponent {
|
||||
@Input() templateRef: TemplateRef<any>;
|
||||
@Input() content: string;
|
||||
@Input() tooltipPlacement: PlacementArray; // TODO: type
|
||||
// @Input('iconPlacement') iconPlacement: string;
|
||||
@Input() tooltipPlacement: PlacementArray;
|
||||
@Input() iconPlacement: PlacementDir;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
// console.log("In ContextHelpWrapperComponent.ngOnInit:", this.content); // XXX
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user