Class Record

record model

Hierarchy

Constructors

Methods

  • field conversion

    Parameters

    • field: FieldInfo

      field descriptor

    • input: any

      value to convert

    Returns any

    the field value in it's original form

  • get field value (as string)

    Example

    let value = record.get('field1');
    

    Parameters

    • name: string

      field name

    Returns string

  • get the record unique identifier by default the return value is the first field

    Returns any

    unique identifier

  • get raw value of a field

    Parameters

    • name: string | number

      field name or field index

    Returns any

  • default serializer

    Returns any

    an object with known record values

  • set field value

    Example

    record.set( 'field1', 7 );
    

    Parameters

    • name: string

      field name

    • value: any

      value to set

    Returns void

  • Parameters

    • name: string
    • data: string

    Returns void

  • default unserializer

    Parameters

    • data: any

      input data

    • Optional id: any

    Returns Record

    a new Record

Generated using TypeDoc