Datasets (auto-completion)

Description

List of settings defining tiers for auto-completion. Parameters can be defined in general (default settings) or per dataset.

Examples

collection: 'my-collection',
datasets: {
   set1: {profile: 'tier1'},
   set2: {profile: 'tier2'}
}
datasets: {
   courses: {
      collection: 'course',
      name: 'courses'
   },
   staff : {
       collection: 'staff',
       name: 'people'
   }
}

Dataset name

Description

Name of the set.

This will be appended to tt-dataset-<dataset_name> - to form the class name of the containing DOM element. Must only consist of underscores, dashes, letters (a-z), and numbers. Source: https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md#datasets

Examples

datasets: {
    myCustomDatasetName: { ... }
}
.tt-dataset-myCustomDatasetName {background: #ccc;}