jquery - How to migrate your Twitter's Bootstrap Javascript plugins from version 2.x to version 3 -


twitter's bootstrap 3 released soon. twitter bootstrap bundles javascript plugins. except typeahead plugin migrate twitter bootstrap 3. many other plugin written twitter bootstrap 2.x how migrate them twitter bootstrap 3?

related question:

javascript en css

download plugin's source code javascript , css (or less) , replace old class references new, see: http://www.bootply.com/bootstrap-3-migration-guide.

beside class names changes javascript code should work.

html

do same html code. or use migrator/updater like: http://twitterbootstrapmigrator.w3masters.nl/, http://bootstrap3.kissr.com/, http://code.divshot.com/bootstrap3_upgrader/ or http://upgrade-bootstrap.bootply.com/

glyphicons

when plugin use glyphicons: install glyphicons http://glyphicons.getbootstrap.com/: download files , copy on font files /fonts directory near css. include compiled css file /css in repository local css folder or download less file , compile bootstrap files. twitter bootstrap 3 includes 200 glyphs in font format glyphicon halflings set. include them class names change icon-* glyphicon .glyphicon-*.

typeahead plugin

when plugin depends on typeahead plugin have rewrite javascript adopt: https://github.com/twitter/typeahead.js/ or find other solution. bootstrap dropped own typeahead plugin in version 3. advice use twitter typeahead. twitter typeahead needs fixes work twitter's bootstrap 3, see: https://stackoverflow.com/a/18171568/1596547. simple autocomplete use cases there seems nothing wrong dropped typeahead plugin. reason decide keep "old" plugin: https://github.com/bassjobsen/bootstrap-3-typeahead. see also: https://stackoverflow.com/questions/18615964/ajax-call-in-bootstrap-3-0-typeahead/18620473#18620473

jquery

twitter bootstrap 3rc1 seems use jquery v1.9.1. see also: does twitter bootstrap include jquery?. include plugins should work latest version of jquery. test plugin latest version too. note new 2.x version of jquery drops support ie8 version not compatible twitter bootstrap 3 should support ie8.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -