File

datapoints-export-selector/datapoints-export-selector.component.ts

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(bsModalService: BsModalService, gainsightService: GainsightService)
Parameters :
Name Type Optional
bsModalService BsModalService No
gainsightService GainsightService No

Inputs

containerClass
Type : string

CSS class for the container element. Defaults to 'd-flex p-t-4 p-b-4' if not provided.

exportConfig
Type : ExportConfig

Configuration for the export selector modal.

Outputs

isOpen
Type : EventEmitter<boolean>

Methods

Async openExportModal
openExportModal()
Returns : Promise<void>

Properties

Readonly DEFAULT_CSS_STYLE
Type : string
Default value : 'd-flex'
@if (containerClass != 'd-contents') {
  <div [ngClass]="containerClass || DEFAULT_CSS_STYLE">
    <button
      class="btn btn-default btn-sm"
      [attr.aria-label]="'Generate export' | translate"
      tooltip="{{ 'Generate export' | translate }}"
      container="body"
      type="button"
      data-cy="datapoints-export-selector--open-export-button"
      (click)="openExportModal()"
      [adaptivePosition]="false"
      [disabled]="!exportConfig"
      [delay]="500"
    >
      <i
        class="icon-14"
        c8yIcon="data-export"
      ></i>
    </button>
  </div>
} @else {
  <button
    class="btn btn-link"
    type="button"
    (click)="openExportModal()"
    [disabled]="!exportConfig"
  >
    <i c8yIcon="data-export"></i>
    {{ 'Generate export' | translate }}
  </button>
}

results matching ""

    No results matching ""