You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes (when I use the typeahead.js in a widget) I do not know how many datasets will go to init phase and I need to provide those datasets as an array. I tried to use typeahead.apply(context, datasests), but seems it is not applicable, as can't provide context (please let me know if there is a way). So, it would be nice to have an ability to provide multiple datasets, wrapped in array list, as a second argument. To achieve this I'd offer to add something like the following to the initialize method:
var datasets = _.map([].slice.call(arguments, 1), function(el) {return el;});
It will serve both situations (when we provide datasets as an array and as a list of arguments).
Regards!
The text was updated successfully, but these errors were encountered:
Hello,
Sometimes (when I use the typeahead.js in a widget) I do not know how many datasets will go to init phase and I need to provide those datasets as an array. I tried to use typeahead.apply(context, datasests), but seems it is not applicable, as can't provide context (please let me know if there is a way). So, it would be nice to have an ability to provide multiple datasets, wrapped in array list, as a second argument. To achieve this I'd offer to add something like the following to the initialize method:
It will serve both situations (when we provide datasets as an array and as a list of arguments).
Regards!
The text was updated successfully, but these errors were encountered: