File

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

Extends

BaseStepperComponent

Metadata

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

Properties

Readonly descriptionTemplateMultiple
Type : string
Default value : gettext( 'Update software to: {{ name }} (version {{ version }}) and {{ count }} others' )
Readonly descriptionTemplateOneOther
Type : string
Default value : gettext( 'Update software to: {{ name }} (version {{ version }}) and one other' )
Readonly descriptionTemplateSingle
Type : string
Default value : gettext( 'Update software to: {{ name }} (version {{ version }})' )
selectedSoftware
Type : ISelectedSoftware[]
Default value : []
selectSoftware
Type : SelectSoftwareStepComponent
Decorators :
@ViewChild(SelectSoftwareStepComponent, {static: false})
operationStepper
Type : BulkOperationStepper
Decorators :
@ViewChild(BulkOperationStepper, {static: true})
stepData
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>

results matching ""

    No results matching ""