context-dashboard/dashboard-availability.component.ts
| selector | c8y-dashboard-availability | 
| templateUrl | ./dashboard-availability.component.html | 
| Properties | 
| Methods | 
| 
 | 
| Inputs | 
| Outputs | 
| Accessors | 
| constructor(userGroupService: UserGroupService, gainsightService: GainsightService) | |||||||||
| 
                                    Parameters :
                                     
 | 
| 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'. | 
| globalRolesIdsChange | 
| Type : EventEmitter | 
| Async ngOnInit | 
| ngOnInit() | 
| 
                        Returns :          any | 
| onSelected | ||||||
| onSelected(items: Item[]) | ||||||
| 
                        Parameters :
                        
                         
 
                        Returns :          void | 
| globalRolesItems | 
| Type : Item[] | 
| Default value : [] | 
| globalRolesItemsSelected | 
| Type : Item[] | 
| Default value : [] | 
| globalRolesIds | ||||||
| get globalRolesIds() | ||||||
| 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'. 
                                    Returns :          DashboardGlobalRoles | ||||||
| set globalRolesIds(ids: DashboardGlobalRoles) | ||||||
| 
                                        Parameters :
                                         
 
                                    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>