mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
97399 Documentation
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
<ng-template #help>
|
||||
<div class="preserve-line-breaks ds-context-help-content">
|
||||
<ng-container *ngFor="let elem of (parsedContent$ | async)">
|
||||
@@ -10,7 +8,6 @@
|
||||
{{ elem }}
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
<!-- {{ content | translate }} -->
|
||||
</div>
|
||||
</ng-template>
|
||||
<i [ngClass]="{'ds-context-help-icon fas fa-question-circle shadow-sm': true,
|
||||
|
@@ -5,15 +5,35 @@ import { Observable, of as observableOf } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { PlacementDir } from './placement-dir.model';
|
||||
|
||||
/*
|
||||
* This component renders an info icon next to the wrapped element which
|
||||
* produces a tooltip when clicked.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-context-help-wrapper',
|
||||
templateUrl: './context-help-wrapper.component.html',
|
||||
styleUrls: ['./context-help-wrapper.component.scss'],
|
||||
})
|
||||
export class ContextHelpWrapperComponent {
|
||||
/*
|
||||
* Template reference for the wrapped element.
|
||||
*/
|
||||
@Input() templateRef: TemplateRef<any>;
|
||||
|
||||
/*
|
||||
* Indicate where the tooltip should show up, relative to the info icon.
|
||||
*/
|
||||
@Input() tooltipPlacement?: PlacementArray;
|
||||
|
||||
/*
|
||||
* Indicate whether the info icon should appear to the left or to
|
||||
* the right of the wrapped element.
|
||||
*/
|
||||
@Input() iconPlacement?: PlacementDir;
|
||||
|
||||
/*
|
||||
* If true, don't process text to render links.
|
||||
*/
|
||||
@Input() dontParseLinks?: boolean;
|
||||
|
||||
// TODO: dependent on evaluation order of input setters?
|
||||
|
Reference in New Issue
Block a user