Class: Schema

LiveView. Schema

new LiveView.Schema(name, fields)

A LiveView Schema is used for Queries and Tables to define their respective schemas.
Name Type Description
name String The name of the schema
fields Array Array of fields that compose the schema.

Members

nameString

Name of the Schema.

fieldsArray

The fields that define this schema as an array. The array preserves field order as received from the LiveView server.

fieldsMapObject.<String, LiveView.Field>

The fields that define this schema mapped by field name. The order of fields in the field map may not be consistent with the actual schema ordering. The fields array maintains fields in the correct order.