• Home
  • PHP
  • JavaScript
  • Online Tools
  • Inspiration
  • Tutorials
TOSDN

Search

  • Business
  • Online Commerce
  • News/Update
  • Forum
Home / Developer / JavaScript / Typeahead.js – A Fast & Fully Featured Auto-Complete Library is inspired by Twitter.com

Typeahead.js – A Fast & Fully Featured Auto-Complete Library is inspired by Twitter.com

Tweet
Source Code in JavaScript

Tags:Auto-CompleteBootstrapjQuery

  • License

    MIT license (MIT)
  • Website

    http://twitter.github.com/typeahead.js/
  • Author

    Twitter.com
  • Last Update

    01 March 2013

TOSDN Comment

Typeahead.js สคริ้ป Auto-Complete ที่พัฒนาโดยคนของ Twitter (และถูกใช้ในเว็บ Twitter.com ด้วย) เน้นเรื่องการใช้งานบ่อยๆและต้องการการทำงานที่เร็ว รองรับภาษาประเภท RTL ได้ (ภาษาที่อ่านจากขวามาซ้าย) ค่อนข้างทำออกมาดีมากครับ เป็นโครงการฟรีโค้ดที่ดีมากเช่นเดียวกับ Bootstrap Framework เลยครับ
  • Usage

    Great
  • Features

    Great
  • Installation

    Easy
Download Demo

Typeahead.js is inspired by twitter.com’s autocomplete search functionality, typeahead.js is a fast and fully-featured autocomplete library. It displays suggestions to end-users as they type.

It works with hardcoded data as well as remote data. It allows for suggestions to be drawn from multiple datasets. It supports customized templates for suggestions. It also plays nice with RTL languages and input method editors. It is licensed under MIT License.

Features

  • Displays suggestions to end-users as they type
  • Shows top suggestion as a hint (i.e. background text)
  • Works with hardcoded data as well as remote data
  • Rate-limits network requests to lighten the load
  • Allows for suggestions to be drawn from multiple datasets
  • Supports customized templates for suggestions
  • Plays nice with RTL languages and input method editors

Why not use X?

At the time Twitter was looking to implement a typeahead, there wasn’t a solution that allowed for prefetching data, searching that data on the client, and then falling back to the server. It’s optimized for quickly indexing and searching large datasets on the client. That allows for sites without datacenters on every continent to provide a consistent level of performance for all their users. It plays nicely with Right-To-Left (RTL) languages and Input Method Editors (IMEs). We also needed something instrumented for comprehensive analytics in order to optimize relevance through A/B testing. Although logging and analytics are not currently included, it’s something we may add in the future.

Bootstrap Integration

For simple autocomplete use cases, the typeahead component Bootstrap provides should suffice. However, if you’d prefer to take advantage of some of the advance features typeahead.js provides, here’s what you’ll need to do to integrate typeahead.js with Bootstrap:

  • If you’re customizing Bootstrap, exclude the typeahead component. If you’re depending on the standard bootstrap.js, ensuretypeahead.js is loaded after it.
  • 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.

Authors

  • Tim Trueman (Twitter / GitHub)
  • Veljko Skarich (Twitter / GitHub)
  • Jake Harding (Twitter / GitHub)

Related posts:

Shapeshift - Inspired by jQuery Masonry with Drag & Drop
Parsley.js - Javascript forms validation. Powerful, UX aware & Dead simple.
iCheck: Super Customized Checkboxes & Radio Buttons
few on March 1, 2013 | Leave a response
← Previous Next →

Advertisement

Sponsor

Tags

  • Ad Management
  • Blog
  • Chat Scripts
  • Click Tracking
  • Content Management (CMS)
  • Counters
  • CRM & ERP
  • Database Management
  • E-Commerce
  • E-Learning
  • Forum / Webboards
  • Framework
  • Graphs & Charts
  • Healthcare
  • Help Desks
  • Image Galleries
  • Project Managmt
  • Shopping Cart
  • Social Network
  • Statistics
  • User Authentication
  • Upload Tools
  • XHTML Editor

Tutorials

  • 03-02-2013 09-12-22-modernie1

    modern.IE – เครื่องมือทดสอบเว็บคุณกับ Internet Explorer ง่ายๆ พร้อมคำแนะนำ

  • image008

    วิธีการเขียน Windows Store app ด้วย HTML และ JS

  • codeigniter-logo

    Sub-Domain or Many File in Page Caching with CodeIgniter

Copyright © 2013 TOSDN.

Powered by WordPress and TOSDN via Live Wire.

Hypersmash.com