operations/create-bulk-operation-details/create-bulk-operation-details.component.ts
selector | c8y-create-bulk-operation-details |
templateUrl | create-bulk-operation-details.component.html |
Properties |
Methods |
Inputs |
Accessors |
constructor(formBuilder: FormBuilder)
|
||||||
Parameters :
|
bulkOperationType |
ngOnInit |
ngOnInit()
|
Returns :
void
|
descriptionPlaceholder |
Type : string
|
Default value : gettext(
'e.g. Reset factory settings of all devices of model XYZ'
)
|
fgOperationDescription |
Type : FormGroup
|
titlePlaceholder |
Type : string
|
Default value : gettext('e.g. Reset factory settings')
|
bulkOperationType | ||||||
setbulkOperationType(bulkOperationType: BulkOperationType)
|
||||||
Parameters :
Returns :
void
|
<div [formGroup]="fgOperationDescription">
<c8y-form-group>
<label translate>Title</label>
<input
formControlName="description"
class="form-control"
[placeholder]="titlePlaceholder | translate"
required
/>
<c8y-messages *ngIf="fgOperationDescription?.controls?.description?.errors">
<c8y-message *ngIf="fgOperationDescription.controls.description.errors.required" translate>
This field is required.
</c8y-message>
</c8y-messages>
</c8y-form-group>
<c8y-form-group>
<label translate>Description</label>
<textarea
formControlName="note"
class="form-control"
[placeholder]="descriptionPlaceholder | translate"
rows="3"
></textarea>
</c8y-form-group>
<c8y-operation-scheduler formControlName="schedule"></c8y-operation-scheduler>
</div>