Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AutocompleteControlRenderer

To use this component you will need to add your own tester:


...
export const AutocompleteControlRendererTester: RankedTester = rankWith(2, isEnumControl);
...

Add the tester and renderer to JSONForms registry:


...
{ tester: AutocompleteControlRendererTester, renderer: AutocompleteControlRenderer },
...

Furthermore you need to update your module.


...
imports: [JsonFormsAngularMaterialModule, MatAutocompleteModule],
declarations: [AutocompleteControlRenderer],
entryComponents: [AutocompleteControlRenderer]
...

Hierarchy

  • JsonFormsControl
    • AutocompleteControlRenderer

Implements

  • OnInit
  • OnDestroy
  • OnInit
  • OnDestroy

Index

Constructors

constructor

Properties

data

data: any

description

description: string

disabled

disabled: boolean

enabled

enabled: boolean

error

error: string | null

filteredOptions

filteredOptions: Observable<string[]>

form

form: FormControl

hidden

hidden: boolean

id

id: string

Protected jsonFormsService

jsonFormsService: JsonFormsAngularService

label

label: string

options

options: string[]

path

path: string

propsPath

propsPath: string

rootSchema

rootSchema: JsonSchema

schema

schema: JsonSchema

scopedSchema

scopedSchema: JsonSchema

shouldFilter

shouldFilter: boolean

subscription

subscription: Subscription

uischema

uischema: ControlElement

validator

validator: ValidatorFn

visible

visible: boolean

Methods

filter

  • filter(val: string): string[]

getEventValue

  • getEventValue(event: any): any

Protected getOwnProps

isEnabled

  • isEnabled(): boolean
  • Returns boolean

mapAdditionalProps

  • mapAdditionalProps(props: StatePropsOfControl): void
  • Parameters

    • props: StatePropsOfControl

    Returns void

Protected mapToProps

  • mapToProps(state: JsonFormsState): StatePropsOfControl
  • Parameters

    • state: JsonFormsState

    Returns StatePropsOfControl

ngOnDestroy

  • ngOnDestroy(): void
  • Returns void

ngOnInit

  • ngOnInit(): void

onChange

  • onChange(ev: any): void
  • Parameters

    • ev: any

    Returns void

onSelect

  • onSelect(ev: MatAutocompleteSelectedEvent): void

shouldShowUnfocusedDescription

  • shouldShowUnfocusedDescription(): boolean
  • Returns boolean

Protected triggerValidation

  • triggerValidation(): void
  • Returns void

updateFilter

  • updateFilter(event: any): void

Generated using TypeDoc