File

operations/bulk-operation-scheduler/operation-scheduler.component.ts

Implements

ControlValueAccessor Validator OnInit OnDestroy

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(formBuilder: FormBuilder, options: OptionsService)
Parameters :
Name Type Optional
formBuilder FormBuilder No
options OptionsService No

Inputs

minutesAhead
Type : number

Methods

convertDelayHandler
convertDelayHandler(unit: string)
Parameters :
Name Type Optional
unit string No
Returns : void
emitData
emitData(data: literal type)
Parameters :
Name Type Optional
data literal type No
Returns : void
markAsTouched
markAsTouched()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
registerOnChange
registerOnChange(fn: any)
Parameters :
Name Type Optional
fn any No
Returns : void
registerOnTouched
registerOnTouched(fn: any)
Parameters :
Name Type Optional
fn any No
Returns : void
registerOnValidatorChange
registerOnValidatorChange(fn: any)
Parameters :
Name Type Optional
fn any No
Returns : void
Optional setDisabledState
setDisabledState(isDisabled: boolean)
Parameters :
Name Type Optional
isDisabled boolean No
Returns : void
validate
validate()
Returns : ValidationErrors
writeValue
writeValue(value: OperationSchedule)
Parameters :
Name Type Optional
value OperationSchedule No
Returns : void

Properties

delayErrors
Type : ValidationErrors
Default value : null
fgOperationScheduler
Type : FormGroup
maxDelay
Type : number
minDate
Type : Date
minDelay
Type : number
pickerErrors
Type : ValidationErrors
Default value : null
placeholder
Type : string
Default value : gettext('Start date')

Accessors

_minutesAhead
set_minutesAhead(minutes: number)
Parameters :
Name Type Optional
minutes number No
Returns : void
<div [formGroup]="fgOperationScheduler">
  <div class="form-group">
    <label translate>Start date</label>
    <div class="datetime-picker">
      <c8y-form-group class="datepicker">
        <input
          class="form-control"
          placeholder="{{ placeholder | translate }}"
          required
          formControlName="picker"
          [bsConfig]="{ customTodayClass: 'today' }"
          [minDate]="minDate"
          bsDatepicker
          (blur)="markAsTouched()"
        />
        <c8y-messages>
          <c8y-message
            [name]="'dateValidation'"
            [text]="'Select time in the future.' | translate"
          ></c8y-message>
        </c8y-messages>
      </c8y-form-group>
      <timepicker
        class="form-group"
        [showSpinners]="false"
        [showMeridian]="false"
        formControlName="time"
        (blur)="markAsTouched()"
      ></timepicker>
    </div>
  </div>
  <div class="form-group">
    <c8y-form-group [hasError]="delayErrors">
      <label translate>Delay</label>
      <div class="input-group">
        <input
          class="form-control"
          placeholder="{{ 'e.g.' | translate }} 15"
          type="number"
          required
          formControlName="delay"
          (blur)="markAsTouched()"
        />
        <div class="input-group-btn">
          <div class="c8y-select-wrapper">
            <select
              class="form-control m-r-sm-32 m-r-xs-56"
              [attr.aria-label]="'Delay units' | translate"
              formControlName="unit"
              (blur)="markAsTouched()"
            >
              <option
                value="seconds"
                translate
              >
                Seconds
              </option>
              <option
                value="milliseconds"
                translate
              >
                Milliseconds
              </option>
            </select>
            <span></span>
          </div>
        </div>
      </div>
    </c8y-form-group>
  </div>
</div>

results matching ""

    No results matching ""