File

core/docs/guide-docs.component.ts

Implements

OnInit AfterContentInit OnDestroy

Metadata

selector [c8y-guide-docs]
templateUrl ./guide-docs.component.html

Index

Properties
Methods

Constructor

constructor(docs: DocsService, el: ElementRef, renderer: Renderer2)
Parameters :
Name Type Optional
docs DocsService No
el ElementRef No
renderer Renderer2 No

Methods

findGuideAnchors
findGuideAnchors(el: HTMLElement)

Recursive function, returns array of Anchor elements inside HTMLElement.

Parameters :
Name Type Optional
el HTMLElement No
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
ngAfterViewInit
ngAfterViewInit()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
replaceAnchorAttributes
replaceAnchorAttributes()

Find and modify anchor elements

Returns : void

Properties

baseUrl
baseUrl: string
Type : string
links
links: QueryList<GuideHrefDirective>
Type : QueryList<GuideHrefDirective>
Decorators :
@ContentChildren(GuideHrefDirective, {descendants: undefined})
translateDirective
translateDirective:
Decorators :
@ContentChild(C8yTranslateDirective, {static: undefined})

Provides access to translate directive, so it is possible to adjust anchor html tags, after content is translated.

<ng-container *ngIf="!!baseUrl">
  <ng-content></ng-content>
</ng-container>

result-matching ""

    No results matching ""