Octra libraries - v2.0.0
    Preparing search index...

    Class OctraProviderSelectComponent

    Hierarchy (View Summary)

    Implements

    • OnChanges
    • ControlValueAccessor
    • Validator
    Index

    Constructors

    Properties

    asrInfoPopover?: NgbPopover
    asrProviders?: ServiceProvider[]
    autoClose: boolean = true
    cd: ChangeDetectorRef = ...
    disabled: boolean = false
    dropdown?: NgbDropdown
    filtered: ServiceProvider[] = []
    i18n: ASROptionsTranslations = defaultI18n
    id: string = 'providerDropdown'
    input?: NgModel
    langItem?: { description: string; providersOnly?: string[]; value: string }
    name: string = ''
    ocbFocus: EventEmitter<void> = ...
    options?: {
        accessCode?: string;
        selectedASRLanguage?: string;
        selectedMausLanguage?: string;
        selectedServiceProvider?: ServiceProvider;
    }
    optionsChange: EventEmitter<
        {
            accessCode?: string;
            selectedASRLanguage?: string;
            selectedMausLanguage?: string;
            selectedServiceProvider?: ServiceProvider;
        },
    > = ...
    placeholder: string = "ASR Provider"
    popTemplate: NgbPopover
    required: boolean = false
    subscriptionManager: SubscriptionManager<Subscription> = ...
    touched: boolean = false

    Accessors

    Methods

    • Parameters

      • fn: any

        The callback function to register

      Returns void

      Registers a callback function that is called when the control's value changes in the UI.

      This method is called by the forms API on initialization to update the form model when values propagate from the view to the model.

      When implementing the registerOnChange method in your own value accessor, save the given function so your class calls it at the appropriate time.

      The following example stores the provided function as an internal method.

      registerOnChange(fn: (_: any) => void): void {
      this._onChange = fn;
      }

      When the value changes in the UI, call the registered function to allow the forms API to update itself:

      host: {
      '(change)': '_onChange($event.target.value)'
      }
    • Parameters

      • fn: any

        The callback function to register

      Returns void

      Registers a callback function that is called by the forms API on initialization to update the form model on blur.

      When implementing registerOnTouched in your own value accessor, save the given function so your class calls it when the control should be considered blurred or "touched".

      The following example stores the provided function as an internal method.

      registerOnTouched(fn: any): void {
      this._onTouched = fn;
      }

      On blur (or equivalent), your class should call the registered function to allow the forms API to update itself:

      host: {
      '(blur)': '_onTouched()'
      }
    • Parameters

      • isDisabled: boolean

        The disabled status to set on the element

      Returns void

      Function that is called by the forms API when the control status changes to or from 'DISABLED'. Depending on the status, it enables or disables the appropriate DOM element.

      The following is an example of writing the disabled property to a native DOM element:

      setDisabledState(isDisabled: boolean): void {
      this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
      }
    • Protected

      subscribes an observable that is internally added to the subscription manager and destroyed automatically on ngDestroy

      Type Parameters

      • R
      • E

      Parameters

      • observable: Observable<R>
      • OptionalobserverOrNext: Partial<Observer<R>> | ((value: R) => void)
      • Optionaltag: string

      Returns number