Inline content assist for text fields and areas
Sergey Chikuyonok has created a really nice, easy to use, and good looking content assist library for input text fields and text areas:
It calculates precise position of characters in or
tag and places completion proposals popup under it. You can explicitly call popup window to assist/replace word (depends on caret position) with Ctrl+Space (buggy in Firefox and Opera) or Alt+Space (buggy in Opera). The project is based on Eclipse IDE’s content assist architecture, it has some common class names and methods. The default implementation works with fixed words vocabulary, but developers can easily modify or extend some classes to match their needs.
The API is easy to use. For example:
new BasicContentAssist(document.getElementById(‘input’), words, {visible_items: 5});
本文出自 传播、沟通、分享,转载时请注明出处及相应链接。
本文永久链接: https://www.nickdd.cn/?p=771