Closed dwelford closed 10 years ago
is that for Bootstrap 2 or 3?
For Bootstrap 2 check out documentation.
I think Bootstrap 3 dropped support for typeahead, however, it still might work if you include typeahead.js
separately and any appropriate css. I didn't test this out myself.
Wow! you are fast :-) Yeah they dropped typeahead now use typehead this is bootstrap 3 has the library been updated to handle the bootstrap 3 typehead?
or does it still work according to the document: .ActionResult(MVC.SomeController.GetStates()) going to use the typehead just wanted to check if it is now bootstrap 3 as the docs still say typeahead.
Thanks David.......
Dude, you really need to work on punctuation. It's hard to read and make sense of sentences without it...
Anyway, implementation of Typeahead in BMVC3 is the same as in BMVC2.
Using .ActionResult(MVC.SomeController.GetStates())
will put appropriate html attribute on the input: data-url="/Controller/GetStates"
. This is all that will happen. There is some javascript in TwitterBootstrapMvcJs-3.0.0.js that is able to work with it. However, you need typeahead.js
script that is in charge of typeahead functionality.
Used:Nuget command Install-Package typeahead.js-bootstrap.css Will work harder on my punctuation.
Thanks
.
Thanks!
I checked what this package is about. It looks like it has all the relevant css. Don't forget to also include js file. Let me know if you have troubles implementing this. I'm writing docs for BMVC 3 now and when I get to Typeahead section I'll make sure there are clear directions on how to make it work.
The docs for Bootstrap 3 are up. I ended up not needing the typeahead.js-bootstrap.css package.
Awesome library thanks, sorry for the delay with the response to the tabindex I can use the HTMLAttribute for both.
Thanks