File

widgets/implementations/help-and-service-widget/help-and-service-view/help-and-service-view.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(docs: DocsService, appStateService: AppStateService, navigatorService: NavigatorService, router: Router)
Parameters :
Name Type Optional
docs DocsService No
appStateService AppStateService No
navigatorService NavigatorService No
router Router No

Methods

openLink
openLink(link: DocLink, $event)
Parameters :
Name Type Optional
link DocLink No
$event No
Returns : void

Properties

Public docs
Type : DocsService
links$
Default value : combineLatest([this.docs.items$, this.navigatorService.items$]).pipe( map(([links, navigatorNodes]) => this.handleDocLinks([...links], navigatorNodes)) )
PRODUCT_EXPERIENCE
Default value : PRODUCT_EXPERIENCE_HELP_AND_SERVICE_WIDGET
<div class="card-group-block">
  <a
    class="card card--btn"
    title="{{ link.label | translate }}"
    role="button"
    [attr.target]="link.target"
    *ngFor="let link of links$ | async"
    rel="noopener noreferrer"
    [href]="link.url ? link.url : '#'"
    (click)="openLink(link, $event)"
    c8yProductExperience
    [actionName]="PRODUCT_EXPERIENCE.HELP_AND_SERVICE_LINKS.EVENTS.HELP_AND_SERVICE_LINKS"
    [actionData]="{
      component: PRODUCT_EXPERIENCE.HELP_AND_SERVICE_LINKS.COMPONENTS.HELP_AND_SERVICE_COMPONENT,
      action: link.label
    }"
  >
    <div class="card-block text-center">
      <div class="icon-32">
        <i
          class="c8y-icon-duocolor"
          [c8yIcon]="link.icon"
        ></i>
      </div>
      <small class="text-muted">{{ link.label | translate }}</small>
    </div>
  </a>
</div>

results matching ""

    No results matching ""