Options
All
  • Public
  • Public/Protected
  • All
Menu

Data view options.

Type Parameters

  • Item

    Item type that may or may not have an id.

  • IdProp extends string

    Name of the property that contains the id.

Hierarchy

  • DataViewOptions

Index

Properties

Methods

Properties

fieldId?: IdProp

The name of the field containing the id of the items. When data is fetched from a server which uses some specific field to identify items, this field name can be specified in the DataSet using the option fieldId. For example CouchDB uses the field '_id' to identify documents.

Methods

  • filter(item: Item): boolean
  • Items can be filtered on specific properties by providing a filter function. A filter function is executed for each of the items in the DataSet, and is called with the item as parameter. The function must return a boolean. All items for which the filter function returns true will be emitted.

    Parameters

    • item: Item

    Returns boolean

Generated using TypeDoc