Installable Django app containing 508-compliant plugins.
Project description
django-508-plugins
Installable Django app containing 508-compliant plugins.
Requirements:
- jQuery 3.6.0+ or jQuery 3.4.1.
Current 508 Compliant packages:
Usage
pip install django-508-plugins
select2
Add plugins.select2 to your INSTALLED_APPS setting. Then, add the following source files to your template::
select2/select2.css
select2/select2-bootstrap.css # Only needed if using Bootstrap 3
select2/select2.js
Note: It is highly recommnded you do not include both plugins.select2 and plugins.selectcn stylesheets in the same template. These stylesheets include rules that will conflict with each other and can cause unexpected results.
selectcn
Add plugins.selectcn to your INSTALLED_APPS setting. Then, add the following source files to your template::
selectcn/css/selectcn.css
selectcn/js/selectcn.js
Note: It is highly recommended you do not include both plugins.selectcn and plugins.select2 stylesheets in the same template. These stylesheets include rules that will conflict with each other and can cause unexpected results.
When using selectcn, make sure the the for attribute of the related <label> tag matches the ID of the select box.
datepicker
Add plugins.datepicker to your INSTALLED_APPS setting. In order for the 508 Compliant datepicker to work, you must include jQuery UI in your template. Add the following source files to your template::
jquery-ui/jquery-ui.css
jquery-ui/jquery-ui.js
datepicker/js/jqueryui_datepicker_508.js
Note This build of jquery-ui only includes the jQuery UI Datepicker. Other jQuery UI components may not be 508 Compliant.
Note This build also contain a yet to be released bug fix on datepicker which caused issues with a datepicker's dropdown widget placement on screen if it was in a popover or modal or there was scrolling. This bugfix has yet to be released on the current stable version of jquery-ui and this build still uses the legacy 1.11.4 build which will likely never get this bugfix. The pull request for this issue is here: https://github.com/jquery/jquery-ui/pull/1935. These changes were built and minified the same way that jquery-ui builder built the source for the original jquery-ui in here, only instead built using a local instance of download.jqueryui.com against the one line change from the bug fix applied to the 1.11 stable branch jquery-ui.ui.datepicker.js file.
Minified versions of datepicker source files are also included in the install.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_508_plugins-3.0.2.tar.gz.
File metadata
- Download URL: django_508_plugins-3.0.2.tar.gz
- Upload date:
- Size: 377.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86722e16c01933f5651e623829783363d86194537fc0a114afb0f44937685e94
|
|
| MD5 |
ef60325d0d43c3a43672b523f2aad6e3
|
|
| BLAKE2b-256 |
3e9961daa2532123fb789fc9467557c8365c19af08bcd1263cff2b93198681e4
|
File details
Details for the file django_508_plugins-3.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: django_508_plugins-3.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 417.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a2631bb22c85717f552b7d1114f7b1009c8ddc72bb17d942b39c621da52ba0e
|
|
| MD5 |
107ae490839a8b5df7c246632c37d609
|
|
| BLAKE2b-256 |
2bb047780bee849e0bdc7202d3d94fcc66d3cc8a420cab54368df8fbaaf6bae5
|