File

context-dashboard/dashboard-availability.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(userGroupService: UserGroupService, gainsightService: GainsightService)
Parameters :
Name Type Optional
userGroupService UserGroupService No
gainsightService GainsightService No

Inputs

globalRolesIds
Type : DashboardGlobalRoles

Ids of global roles assigned to the dashboard or a string "all" indicating the selection of all global roles. The value undefined is treated as equivalent to 'all'.

Outputs

globalRolesIdsChange
Type : EventEmitter

Methods

Async ngOnInit
ngOnInit()
Returns : any
onSelected
onSelected(items: Item[])
Parameters :
Name Type Optional
items Item[] No
Returns : void

Properties

globalRolesItems
Type : Item[]
Default value : []
globalRolesItemsSelected
Type : Item[]
Default value : []

Accessors

globalRolesIds
getglobalRolesIds()

Ids of global roles assigned to the dashboard or a string "all" indicating the selection of all global roles. The value undefined is treated as equivalent to 'all'.

setglobalRolesIds(ids: DashboardGlobalRoles)
Parameters :
Name Type Optional
ids DashboardGlobalRoles No
Returns : void
<c8y-form-group class="p-b-24 m-b-0">
  <div class="legend form-block">
    <span>{{ 'Availability' | translate }}</span>
  </div>
  <label for="availability">
    <span class="m-r-4" id="availability">
      {{ 'Global roles' | translate }}
    </span>
    <button
      class="btn-help btn-help--sm"
      [attr.aria-label]="'Help' | translate"
      type="button"
      popover="{{
        'Select the global roles for which the dashboard will be available' | translate
      }}"
      triggers="focus"
      placement="right"
      container="body"
    >
      <i [c8yIcon]="'question-circle-o'"></i>
    </button>
  </label>
  <c8y-select
    style="width: 180px"
    [items]="globalRolesItems"
    [selected]="globalRolesItemsSelected"
    (onChange)="onSelected($event)"
  ></c8y-select>
</c8y-form-group>

results matching ""

    No results matching ""