Skip to content

Callback (auto-completion)

Description

Callback function applied to suggestions before returning them to Typeahead plugin.

Examples

callback: function(set, suggestions) {
  for (i = 0, len = suggestions.length; i < len; i++) {
    suggestions['custom_field'] = 'custom_value';
  }

  return suggestions;
}

top

Funnelback logo
v15.24.0