Interface Datum

The individual units that compose datasets are called datums. The canonical form of a datum is an object with a value property and a tokens property.

For ease of use, datums can also be represented as a string. Strings found in place of datum objects are implicitly converted to a datum object.

When datums are rendered as suggestions, the datum object is the context passed to the template engine. This means if you include any arbitrary properties in datum objects, those properties will be available to the template used to render suggestions.

Index

Properties

Properties

public tokens: Array<string>

A collection of single-word strings that aid typeahead.js in matching datums with a given query.

public value: string

The string that represents the underlying value of the datum