Utilities for https://github.com/anutron/behavior integration with django.
Homepage Repository PyPI Python
pip install django-mootools-behavior==0.1.1
Utilities for https://github.com/anutron/behavior integration with django.
This app provides template filters that can alter data attributes of the form fields required for behavior. It also have a 'behavior' and 'behavior-more' libraries bundled for use with django.contrib.staticfiles.
The license is MIT.
pip install django-mootools-behavior
python manage.py collectstatic
in order to get 'behavior'
javascript files;Sets 'data-behavior-...' attribute to a form field:
{% load mootools_behavior %} <!-- data-behavior:"OverText" will be added to input field --> {{ form.title|behave:"OverText" }}
Sets HTML5 data attribute ( http://ejohn.org/blog/html-5-data-attributes/ ).
Example:
{% load mootools_behavior %} <!-- data-behavior:"OverText" will be added to input field --> {{ form.title|set_data:"behavior:OverText" }}
If you've found a bug, implemented a feature or have a suggestion, do not hesitate to contact me, fire an issue or send a pull request.
Source code:
Report bugs: