File

core/docs/guide-docs.component.ts

Implements

OnInit AfterContentInit OnDestroy

Metadata

Index

Properties
Methods
Accessors

Constructor

constructor(docs: DocsService, el: ElementRef, renderer: Renderer2, translateDirective: C8yTranslateDirective)
Parameters :
Name Type Optional
docs DocsService No
el ElementRef No
renderer Renderer2 No
translateDirective C8yTranslateDirective 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
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
replaceAnchorAttributes
replaceAnchorAttributes()

Find and modify anchor elements

Returns : void

Properties

baseUrl
Type : string
links
Type : QueryList<GuideHrefDirective>
Decorators :
@ContentChildren(GuideHrefDirective, {descendants: true})

Accessors

translateDirective
gettranslateDirective()
settranslateDirective(value: C8yTranslateDirective)
Parameters :
Name Type Optional
value C8yTranslateDirective No
Returns : void
<ng-container *ngIf="!!baseUrl">
  <ng-content></ng-content>
</ng-container>

results matching ""

    No results matching ""