![]() ![]() Īs inherited from django-autocomplete-tagging, there are two ways of using this field, a model-field and a form-widget. TAGGING_AUTOCOMPLETE_CSSĪ list of CSS files to style the look of the tag-field. In case you want to load your own version of jQuery UI. Defaults to STATIC_URL/js/jquery-tag-it/. URL from which the static files (javascript and css) are loaded. This is actually a setting of django-tagging. This default behaviour affects all tag fields but can be overriden for specific fields by passing the max_tags argument to the field. Let's say you want to limit the number of tags for each tagged item to 5 because you don't want spammers to fill your database with hundred of tags: this is for you. TAGGING_AUTOCOMPLETE_ANIMATEĪnimated deletion of tags, defaults to True. Highlight a tag before deleting it when pressing backspace, defaults to True. Minimum length of the words before starting to query the database, defaults to 1. There are no demos or sample projects yet but you can see the jquery UI widget in action here: Ĭustomizable minimum amount of letters before the autocompletition startsĪims to be flexible (help me if you want)įollows an explaination of the available settings that can be specified in your settings.py. WARNING: The jQuery plugin used by this django app is a fork of the original Feel free to send bug reports or patches on github. The code is still unstable, I will probably change few things but you could start using it so we can improve it together. I still needed some more functionalities which were missing in the original jQuery Tag-it plugin so I forked it, added few lines of code and pulled commits from anoter forked repository in order to add some more goodies (maximum tag length and maximum number of tags). I spent some time trying different plugins and in the end I've chosen jQuery Tag-it (jQuery UI widget) as it is the one that looks most well written to me. I wanted to implement this functionality in my django projects for some time now and I finally had the chance to work on a project that has this requirement in the specification. It's based on django-tagging-autocomplete and depends on django-tagging. This is an attempt to a django reusable app that aims to be functional but flexible. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |