core/docs/guide-docs.component.ts
OnInit
AfterContentInit
OnDestroy
| selector | [c8y-guide-docs] |
| standalone | true |
| imports |
NgIf
|
| templateUrl | ./guide-docs.component.html |
Properties |
Methods |
Accessors |
constructor(docs: DocsService, el: ElementRef, renderer: Renderer2, translateDirective: C8yTranslateDirective)
|
|||||||||||||||
|
Parameters :
|
| findGuideAnchors | ||||||
findGuideAnchors(el: HTMLElement)
|
||||||
|
Recursive function, returns array of Anchor elements inside HTMLElement.
Parameters :
Returns :
HTMLElement[]
|
| ngAfterContentInit |
ngAfterContentInit()
|
|
After content is initialized we subscribe for translation events, then we are able to modify anchor just as C8yGuideHrefDirective does.
Returns :
void
|
| ngOnDestroy |
ngOnDestroy()
|
|
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| replaceAnchorAttributes |
replaceAnchorAttributes()
|
|
Find and modify anchor elements
Returns :
void
|
| baseUrl |
Type : string
|
| links |
Type : QueryList<GuideHrefDirective>
|
Decorators :
@ContentChildren(GuideHrefDirective, {descendants: true})
|
| translateDirective | ||||||
gettranslateDirective()
|
||||||
settranslateDirective(value: C8yTranslateDirective)
|
||||||
|
Parameters :
Returns :
void
|
<ng-container *ngIf="!!baseUrl">
<ng-content></ng-content>
</ng-container>