插件 jQuery.textext 中文API文档
插件 jQuery.textext 中文API文档 https://github.com/alexgorbatchev/jquery-textext
Version 2.0 in development
Please note that there’s version 2.0 in active development. Checkout the #2.0.0-wip branch for more fun action! CoffeeScript and full Jasmine coverage - fun stuff!
TextExt is a plugin for jQuery which is designed to provide functionality such as tag input and autocomplete.
The core design principle behind TextExt is modularity and extensibility. Each piece of functionality is separated from the main core and can act individually or together with other plugins.
TextExt’s modular design allows you easily turn a standard HTML text input into a wide range of modern, tailored to your needs input field without bloating your source code and slowing down your site with the code that you aren’t using.
A wide number of plugins are available including Tags, Autocomplete, Filter, Ajax as well as a few which are purely aesthetic like Focus.
Please refer to the manual for the full API documentation and examples.
- AJAX loading
- Placeholder text
- … and much more!
How To Use
The steps to using TextExt are as follows:
- Specify which plugins you need via the
- Configure each plugin individually if necessary
- Fixed jQuery 1.8.x compatability (issue #74).
tagClickevent to the tags plugin (issue #13). See the example.
- Prompt plugin now checks
placeholderattribute (issue #8). See the example.
- Clicking on item in autocomplete will automatically add that item to tags #2.
- Fixes getter methods created when plugins are initialized. (issue #20).
- Fixed issues #4, #4 and #10 related to the mouse issues in the autocomplete dropdown.
- Added ability to get instances of plugins to call methods on them directy (issue #6). See the example.
autocomplete.renderoption for custom rendering. See the manual and example.
autocomplete.dropdown.maxHeightoption for setting height of the dropdown. See manual and example.
- Added Arrow plugin.
- Switched to MIT license.
- TextExt core now works with
- Filter plugin now works without Tags.
- Fixed clicking on suggestion in autocomplete dropdown.
- Initial release.
The TextExt component is released under the open source MIT. This means that you can use it any way you want, but I would very much appreciate if you take a minute and support the project through a donation.