Git Product home page Git Product logo

Comments (3)

timschlechter avatar timschlechter commented on July 22, 2024

Customize html is not possible at the moment. Styling by css would be possible because the dropdown <ul> has two classes: typeahead and dropdown-menu

I'm not sure what to do with the typeahead yet, because in Bootstrap 3 it was dropped.

from bootstrap-templates.

tdhung80 avatar tdhung80 commented on July 22, 2024

hi Tim,

I have looked at the code, i have some comments to make the component more powerful

We will replace the line 193 // self.$input.typeahead({ .... });
by self.$input.typeahead(typeahead); // of course, you also need to intercept updater to update states for your component.

So that, developers could put settings for typeahead directly, and they can deal with typeahead directly such as customize html render, etc.

My Best,
Hung Tran

from bootstrap-templates.

timschlechter avatar timschlechter commented on July 22, 2024

Hi Hung Tran. Sorry for the late response, but I've been busy doning some other stuff lately. I just implemented a workaround (see #19). You can access the internal input like this: elt.tagsinput('input').
This way, you can use any typeahead solution you'd like. Some examples are provided on the Bootstrap 3 examples page: http://timschlechter.github.io/bootstrap-tagsinput/examples/bootstrap3/

from bootstrap-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.