typeahead.js-bootstrap-css

LESS / CSS code for using typeahead.js with Bootstrap 3

  • 所有者: bassjobsen/typeahead.js-bootstrap-css
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Typeahead.js and Bootstrap 3

For Bootstrap 4 try typeaheadjs.css

typeahead.js

The typeahead.js library consists of 2 components: the suggestion engine, Bloodhound, and the UI view, Typeahead. The suggestion engine is responsible for computing suggestions for a given query. The UI view is responsible for rendering suggestions and handling DOM interactions. Both components can be used separately, but when used together, they can provided a rich typeahead experience.

Bootstrap 3

Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created by Mark Otto and Jacob Thornton, and maintained by the core team with the massive support and involvement of the community.

To get started, check out http://getbootstrap.com!

History

With Twitter Bootstrap 3 the typeahead plugin had been dropped. @mdo says: "in favor of folks using Twitter's typeahead. Twitter's typeahead has more features than the old bootstrap-typeahead.js and less bugs." Twitter's typeahead don't work direct with Bootstrap 3. The DOM structure of the dropdown menu used by typeahead.js differs from the DOM structure of the Bootstrap dropdown menu. You'll need to load some additional CSS in order to get the typeahead.js dropdown menu to fit the default Bootstrap theme. You can download the basic CSS here, or use the LESS file to integrate it into your project. CSS and LESS are build with the latest LESS code of Bootstrap 3.1.0. Code does not introduce new mixins and only extends Bootstrap's LESS. If you search for a more extended version try: typeahead.js-bootstrap3.less.

Note also the orginal typeahead plugin still works with Bootstrap 3.

Download

How to use

CSS

Include the CSS file after Bootstrap's CSS in your HTML:

<link href="bootstrap-3.1.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="typeaheadjs.css" rel="stylesheet">

LESS

  1. Copy typeaheadjs.less into your Bootstrap's LESS folder
  2. Import this file into bootstrap.less: @import "typeaheadjs.less";
  3. Recompile Bootstrap

Example

ScreenShot

Examples

Run npm install. Now the .html files can be opened standalone. Thanks to @holtkamp.

主要指標

概覽
名稱與所有者bassjobsen/typeahead.js-bootstrap-css
主編程語言CSS
編程語言CSS (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2014-02-13 23:11:26
推送於2017-10-30 08:51:50
最后一次提交2017-10-30 09:51:49
發布數5
最新版本名稱1.2.1 (發布於 )
第一版名稱0.1 (發布於 )
用户参与
星數193
關注者數14
派生數124
提交數41
已啟用問題?
問題數17
打開的問題數3
拉請求數12
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?