• Stars
    star
    1,272
  • Rank 36,997 (Top 0.8 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 13 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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:

More Repositories

1

crc

Blazingly fast CRC implementations for node.js and browser
Python
324
star
2

node-browser-builtins

Browser altenatives to built-in node.js modules
JavaScript
62
star
3

gulp-changed-in-place

Gulp plugin to only pass through changed files
JavaScript
55
star
4

nginx-plex-deluge-proxy

This is an NGINX configuration for Plex and Deluge reverse proxy setup
33
star
5

gulp-print

This is a very basic gulp plugin that prints names of files.
TypeScript
30
star
6

typescript-module-boilerplate

This is a boilerplate for a TypeScript NPM module.
JavaScript
30
star
7

angular-injector

This module is meant to solve an annoying problem of minification and dependency injection in angular.js.
CoffeeScript
28
star
8

gulp-typescript-webpack-react-hotreload

This is pretty old stuff, I wouldn't use it now
TypeScript
28
star
9

coffee-errors

Patches error stack to display correct line numbers for CoffeeScipt node.js applications.
CoffeeScript
18
star
10

gpg-online

Easily PGP encrypt a message in the browser
HTML
18
star
11

winston-logentries

This is a winston transport for the logentries.com logging service.
16
star
12

run-when-changed

Selectively executes commands when watched files are changed.
JavaScript
12
star
13

gulp-angular-injector

This gulp.js plugin is meant to solve an annoying problem of minification and dependency injection in angular.js.
CoffeeScript
10
star
14

grunt-angular-injector

This grunt.js plugin is meant to solve an annoying problem of minification and dependency injection in angular.js.
CoffeeScript
8
star
15

generator-coffee-module

Yeoman generator that scaffolds out a new Node.js module to be published on NPM written in CoffeeScript.
CoffeeScript
7
star
16

hg-to-git

Import Mercurial/HG repositories to Git
Python
6
star
17

vimrc

My .vimrc setup
Vim Script
5
star
18

webpack-angular-injector-plugin

This Webpack plugin is meant to solve an annoying problem of minification and dependency injection in Angular.js.
CoffeeScript
5
star
19

boominator

Festival speaker Boominator (originally designed by Saturnus)
4
star
20

hapi-stylus

A basic Stylus plugin for hapi.
CoffeeScript
4
star
21

winston-child

Facilitates meta object inheritance for Winston loggers.
CoffeeScript
4
star
22

less-compiler

A handy LESS compiler from a series of compilers that have the same signature.
CoffeeScript
3
star
23

fork-promise

Executes code in a forked Node.js process and returns a Bluebird promise
CoffeeScript
3
star
24

sweatshop

Very basic factories helper to generate plain objects and scenarios for tests.
CoffeeScript
2
star
25

rethinkdb-cleartables

A helper method to delete all records in specified or all tables in RethinkDB database
Shell
2
star
26

recursive-omit-by

Deletes keys from the object that match a condition without side effects.
JavaScript
2
star
27

iframe-script-loader

Allows you to load multiple scripts in an IFRAME sandbox.
CoffeeScript
2
star
28

coffee-compiler

A handy CoffeeScript compiler from a series of compilers that have the same signature.
CoffeeScript
2
star
29

gulp-task-graph-visualizer

Prints out Gulp.js tasks graph tree
JavaScript
2
star
30

file-paths-to-tree

A basic NPM module which converts list of file paths to a tree structure and also allows you to print it neatly.
TypeScript
2
star
31

jade-compiler

A handy Jade compiler from a series of compilers that have the same signature.
CoffeeScript
2
star
32

generator-coffee-generator

Yeoman generator that scaffolds out a new basic Yeoman generator with some sensible defaults written in CoffeeScript.
CoffeeScript
2
star
33

iframe-script

Allows you to sandbox your client scripts inside an IFRAME to avoid conflicts when deploying to 3rd party sites.
CoffeeScript
2
star
34

filename-changer

A helper module to simplify life when dealing with file names. Basically, it allows you to use a simple pattern to edit file names.
CoffeeScript
2
star
35

jsdoc-remarkable

Plugin for the Remarkable Markdown parser that enables basic JSDoc
JavaScript
1
star
36

ackmate-parser

Streaming parser for the results produced by The Silver Searcher (aka ag) with the --ackmate flag.
JavaScript
1
star
37

d-opsworks

Ruby
1
star
38

readme-manager

CoffeeScript
1
star
39

rethinkdb-droptables

A helper method to delete specified or all tables in RethinkDB database
Shell
1
star
40

assets

1
star
41

npm-private

A private NPM registry running on localhost that falls back to public.
Shell
1
star
42

moment-to-reql

A helper function to convert moment.js object to ReQL so that Timezone information can be preserved when passing data to RethinkDB.
TypeScript
1
star
43

browserify-angular-injector

This browserify plugin is meant to solve an annoying problem of minification and dependency injection in angular.js.
CoffeeScript
1
star
44

query-filter

Utility module which removes all matching query/get parameters from URL using regular expressions
CoffeeScript
1
star
45

rethinkdb-createtables

A helper method to create one or more RethinkDB tables
Shell
1
star
46

browserify-smith

Agent Smith for Browserify includes transforms for LESS and CoffeeScript transforms.
CoffeeScript
1
star
47

sublime-config

Personal Sublime config files.
JavaScript
1
star
48

bunyan-rethinkdb

Bunyan logger that sends data to RethinkDB.
JavaScript
1
star
49

git-branch-diff

This is a git utility that compares all local branches to one other branch and shows all files that have differences.
CoffeeScript
1
star
50

ejs-build

Compiles a passed in EJS template with a supplied context object and spits out results.
CoffeeScript
1
star
51

jquery-textext-doc

Documentation site for https://github.com/alexgorbatchev/jquery-textext
Ruby
1
star
52

rethinkdb-ensuretable

A helper method to ensure RethinkDB table exists
Shell
1
star
53

jsdoc-with-markdown

Parses JSDoc-like string into JSON assuming the formating is in Markdown.
JavaScript
1
star
54

browserify-through

Handy dandy helper to assist you writing with Browserify transforms.
CoffeeScript
1
star