Callback (auto-completion)

ON THIS PAGE

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;
}

© 2015- Squiz Pty Ltd