97399 Documentation

This commit is contained in:
Koen Pauwels
2022-12-19 17:05:26 +01:00
parent 1ae18ec9f7
commit c158fd18c9
2 changed files with 20 additions and 3 deletions

View File

@@ -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?