d-flood / PeasyWidgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PeasyWidgets

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install peasywidgets
  1. Add peasywidgets to Django INSTALLED_APPS
  2. Import the desired widgets
from peasywidgets.datalist_widgets import DatalistMultiple, DatalistSingle
from peasywidgets.filter_widgets import ChoiceFilterMultiple, ChoiceFilterSingle
  1. Run collectstatic and include the JavaScript in templates `{% static 'peasywidgets.js' %}``

Styling

The following default CSS is available to use with Django's static template tag, otherwise use these selectors to write custom CSS/Tailwind directives.

License

peasywidgets is distributed under the terms of the MIT license.

About

License:MIT License


Languages

Language:JavaScript 52.2%Language:Python 21.1%Language:HTML 16.1%Language:CSS 10.6%