Class GenericFieldHandler

GenericFieldHandler is a field handler which does no validation on the field data. It simply stores the data as a string.

Hierarchy

Implements

  • IFieldHandler

Constructors

  • Parameters

    • fieldTypeIn: string
    • configIn: XRFieldTypeAnnotatedParamJson

    Returns GenericFieldHandler

Properties

config: any
data: string
fieldType: string

Methods

  • Get the data for the field.

    Returns string

    a string or undefined.

  • Return the field type of this field as a string.

    Returns string

    string

  • initData will set the data of the field handler to the passed-in parameter, or, if it is undefined, consult the initialContent key of the configuration object. If this key is defined, then the data of the field handler will be set to that value.

    Parameters

    • serializedFieldData: string

    Returns void

  • Set the field data to the input string.

    Parameters

    • value: string
    • Optional doValidation: boolean

    Returns void

Generated using TypeDoc