DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

Reply to TabIndex #110

Closed dwelford closed 10 years ago

dwelford commented 10 years ago

Awesome library thanks, sorry for the delay with the response to the tabindex I can use the HTMLAttribute for both.

Thanks

DmitryEfimenko commented 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.

dwelford commented 10 years ago

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.......

DmitryEfimenko commented 10 years ago

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.

dwelford commented 10 years ago

Used:Nuget command Install-Package typeahead.js-bootstrap.css Will work harder on my punctuation.

Thanks

.

DmitryEfimenko commented 10 years ago

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.

DmitryEfimenko commented 10 years ago

The docs for Bootstrap 3 are up. I ended up not needing the typeahead.js-bootstrap.css package.