bassjobsen/Bootstrap-3-Typeahead

Is it at all possible to pass function as data-source html attribute?

tishma opened this issue · 0 comments

Sry if it's obvious, but I'm not very experienced with the matter and I'm working on existing code that has a server-side generated array - in data-source element.
Unfortunately, a null array element somehow breaks in, and typeahead doesn't like it.
I'd like to keep it simple and add a function that filters this array out of nulls, but I can't get to call a function by simply saying data-source="myFunction" or even data-source="myFunction()".
Thanks in advance.