Giter Site home page Giter Site logo

wordpressdev / jquery-textext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexgorbatchev/jquery-textext

0.0 2.0 0.0 777 KB

A super awesome, customizable text input supporting tags, autocomplete, ajax and other goodness in a crazy cool a-la cart way.

Home Page: http://textextjs.com

License: MIT License

jquery-textext's Introduction

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!

About

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.

Features

  • Tags
  • Autocomplete
  • AJAX loading
  • Placeholder text
  • Arrow
  • ... and much more!

Example

<textarea id="textarea" rows="1"></textarea>

<script type="text/javascript">
    $('#textarea').textext({
        plugins : 'tags prompt focus autocomplete ajax arrow',
        tagsItems : [ 'Basic', 'JavaScript', 'PHP', 'Scala' ],
        prompt : 'Add one...',
        ajax : {
            url : '/manual/examples/data.json',
            dataType : 'json',
            cacheResults : true
        }
    });
</script>

How To Use

The steps to using TextExt are as follows:

  1. Specify which plugins you need via the plugins option
  2. Configure each plugin individually if necessary
  3. Enjoy!

History

1.3.1

Bug Fixes

  • Fixed jQuery 1.8.x compatability (issue #74).

1.3.0

New Features

  • Added tagClick event to the tags plugin (issue #13). See the example.
  • Prompt plugin now checks placeholder attribute (issue #8). See the example.
  • Clicking on item in autocomplete will automatically add that item to tags #2.

Bug Fixes

  • 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.
  • Fixed textext.[pluginName]() (issue #20).

1.2.0

  • Added ability to get instances of plugins to call methods on them directy (issue #6). See the example.

1.1.0

New Features

  • Added autocomplete.render option for custom rendering. See the manual and example.
  • Added autocomplete.dropdown.maxHeight option for setting height of the dropdown. See manual and example.
  • Added Arrow plugin.
  • Switched to MIT license.

Bug Fixes

  • TextExt core now works with <input/> tags.
  • Filter plugin now works without Tags.
  • Fixed clicking on suggestion in autocomplete dropdown.

1.0.0

  • Initial release.

License

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.

Contributors

Alphabetically:

jquery-textext's People

Contributors

alexgorbatchev avatar cmer avatar kof avatar sstok avatar adamayres avatar mreinstein avatar thrashr888 avatar

Watchers

James Cloos avatar Rafique avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.