widgets/implementations/markdown/markdown-widget-view/markdown-widget-view.component.ts
OnInit
selector | c8y-markdown-widget-view |
standalone | true |
imports |
MarkdownToHtmlPipe
AsyncPipe
|
templateUrl | ./markdown-widget-view.component.html |
Properties |
Methods |
|
Inputs |
constructor(appState: AppStateService, client: FetchClient, markdownWidgetService: MarkdownWidgetService)
|
||||||||||||
Parameters :
|
config |
Type : MarkdownWidgetConfig
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
setContentFromUrl | ||||||
setContentFromUrl(url: string)
|
||||||
Parameters :
Returns :
void
|
contextPath |
Type : string
|
loading |
Type : boolean
|
markdown |
Type : string
|
<div id="helpContent" class="p-16 p-t-0 markdown-content" [innerHTML]="markdown | markdownToHtml | async"></div>