Permalink
Browse files

added createTag() method to readme

  • Loading branch information...
Nabuchodonozor committed Apr 2, 2011
1 parent 88d1771 commit 1c73ae45f2222841fb17d5999eafd2f784f78081
Showing with 6 additions and 2 deletions.
  1. +6 −2 README.markdown
View
@@ -121,7 +121,7 @@ The function receives the tag as parameter.
// do something special
}
});
-
+
### tagSource (function)
Can be overwritten in order to use custom autocompletion sources like Ajax requests.
@@ -178,6 +178,11 @@ Clears the widget of all tags -- removes each tag it contains, so the onTagRemov
$("#mytags").tagit('removeAll');
+### createTag(tagName)
+Adds new tag to the list.
+
+ $("#mytags").tagit('createTag','brandNewTag');
+
## Authors
@@ -186,4 +191,3 @@ Clears the widget of all tags -- removes each tag it contains, so the onTagRemov
* [Tobias Schmidt](http://github.com/grobie)
* [Skylar Challand](http://github.com/sskylar)
* [Alex Ehlke](http://github.com/aehlke)
-

0 comments on commit 1c73ae4

Please sign in to comment.