File

operations/stepper-bulk-type-software/stepper-bulk-type-software.component.ts

Extends

BaseStepperComponent

Metadata

selector c8y-stepper-bulk-type-software
templateUrl stepper-bulk-type-software.component.html

Index

Properties
Methods

Constructor

constructor(modal: ModalService, translate: TranslateService)
Parameters :
Name Type Optional
modal ModalService No
translate TranslateService No

Methods

Async confirmSoftwareSelection
confirmSoftwareSelection($event: literal type)
Parameters :
Name Type Optional
$event literal type No
Returns : any
onSoftwareSelected
onSoftwareSelected(selectedItem)
Parameters :
Name Optional
selectedItem No
Returns : void
Protected retrieveOperationPrototype
retrieveOperationPrototype()
Returns : OperationDetails
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
Protected onSelectionChange
onSelectionChange(event: StepperSelectionEvent)
Parameters :
Name Type Optional
event StepperSelectionEvent No
Returns : void
Protected Abstract retrieveOperationPrototype
retrieveOperationPrototype()

Properties

Readonly descriptionTemplateMultiple
descriptionTemplateMultiple: string
Type : string
Default value : gettext( 'Update software to: {{ name }} (version {{ version }}) and {{ count }} others' )
Readonly descriptionTemplateOneOther
descriptionTemplateOneOther: string
Type : string
Default value : gettext( 'Update software to: {{ name }} (version {{ version }}) and one other' )
Readonly descriptionTemplateSingle
descriptionTemplateSingle: string
Type : string
Default value : gettext( 'Update software to: {{ name }} (version {{ version }})' )
selectedSoftware
selectedSoftware: ISelectedSoftware[]
Type : ISelectedSoftware[]
Default value : []
selectSoftware
selectSoftware: SelectSoftwareStepComponent
Type : SelectSoftwareStepComponent
Decorators :
@ViewChild(SelectSoftwareStepComponent, {static: undefined})
operationStepper
operationStepper: BulkOperationStepper
Type : BulkOperationStepper
Decorators :
@ViewChild(BulkOperationStepper, {static: undefined})
stepData
stepData: literal type
Type : literal type
Default value : {}

A map holding step data. The order of properties need to match the order of the steps they hold data for as the index of the property is used to clear step data when navigating forth after changing data at an earlier step.

<c8y-bulk-operation-stepper>
  <ng-container
    *customStep="
      'Select software' | translate; 
      completed: !!selectedSoftware.length;
      buttonsDisabled: !selectedSoftware.length; 
      onNext: confirmSoftwareSelection.bind(this)"
  >
    <c8y-select-software-step
      (software)="onSoftwareSelected($event)"
      class="d-contents"
    ></c8y-select-software-step>
  </ng-container>
  <ng-container *customStep="'Confirm selected software' | translate">
    <c8y-confirm-software-selection-step
      class="d-contents"
      [selectedItems]="selectedSoftware"
    ></c8y-confirm-software-selection-step>
  </ng-container>
</c8y-bulk-operation-stepper>

result-matching ""

    No results matching ""