Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with typeahead #203

Closed
ejlocop opened this issue Nov 3, 2015 · 0 comments
Closed

issue with typeahead #203

ejlocop opened this issue Nov 3, 2015 · 0 comments
Labels
Milestone

Comments

@ejlocop
Copy link

ejlocop commented Nov 3, 2015

hi, when i tried to customize tagsinput typeahead template. it only shows a blank suggestion, but there is a data when i select them

here's my code

$('elem').tagsinput({
            itemValue:'value',
            itemText:'value',
            typeaheadjs: {
                minLength:3,
                source:sharing.affDatum.ttAdapter(),
                templates: {
                    suggestion: function(data) { // data is an object as returned by suggestion engine
                        var d = data;
                        return  '<div>haha</div>';

                    }
                }
            }
        });

here's the result
untitled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants