Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JsonFormsAngularService

Hierarchy

  • JsonFormsAngularService

Index

Properties

Private _state

_state: JsonFormsSubStates

Private state

state: BehaviorSubject<JsonFormsState>

Accessors

$state

  • get $state(): Observable<JsonFormsState>

Methods

addRenderer

getState

  • getState(): JsonFormsState

init

  • init(initialState?: JsonFormsSubStates): void
  • Parameters

    • Default value initialState: JsonFormsSubStates = { core: { data: undefined, schema: undefined, uischema: undefined } }

    Returns void

refresh

  • refresh(): void

registerRenderer

registerRenderers

  • registerRenderers(renderers: JsonFormsRendererRegistryEntry[]): void
  • deprecated

    use {@link JsonFormsAngularService.setRenderer}

    Parameters

    • renderers: JsonFormsRendererRegistryEntry[]

    Returns void

removeRenderer

  • removeRenderer(tester: RankedTester): void

setData

  • setData(data: any): void

setLocale

  • setLocale(locale: string): void

setReadonly

  • setReadonly(readonly: boolean): void

setRenderers

  • setRenderers(renderers: JsonFormsRendererRegistryEntry[]): void

setSchema

  • setSchema(schema: JsonSchema | undefined): void

setUiSchema

  • setUiSchema(uischema: UISchemaElement | undefined): void

setUiSchemas

  • setUiSchemas(uischemas: object[]): void

unregisterRenderer

  • unregisterRenderer(tester: RankedTester): void

updateConfig

  • updateConfig<T>(setConfigAction: T): T

updateCore

  • updateCore<T>(coreAction: T): T

updateCoreState

  • updateCoreState(data: any | unique symbol, schema: JsonSchema | unique symbol, uischema: UISchemaElement | unique symbol, ajv: Ajv | unique symbol, validationMode: ValidationMode | unique symbol): void
  • Parameters

    • data: any | unique symbol
    • schema: JsonSchema | unique symbol
    • uischema: UISchemaElement | unique symbol
    • ajv: Ajv | unique symbol
    • validationMode: ValidationMode | unique symbol

    Returns void

updateLocale

  • updateLocale<T>(localeAction: T): T

Private updateSubject

  • updateSubject(): void

updateUiSchema

  • updateUiSchema<T>(uischemaAction: T): T

updateValidationMode

  • updateValidationMode(validationMode: ValidationMode): void

Generated using TypeDoc