We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom JavaScript can be loaded in metadata.json like this:
metadata.json
{ "extra_js_urls": [ { "url": "https://code.jquery.com/jquery-3.2.1.slim.min.js", "sri": "sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g=" } ] }
Add a "module": true option which causes the resulting script element to use <script type="module">
"module": true
<script type="module">
The text was updated successfully, but these errors were encountered:
fa0c377
Updated documentation: https://docs.datasette.io/en/latest/custom_templates.html#custom-css-and-javascript and https://docs.datasette.io/en/latest/plugin_hooks.html#extra-js-urls-template-database-table-columns-view-name-request-datasette
Sorry, something went wrong.
Release 0.54a0
57f4d7b
Refs #1091, #1145, #1151, #1156, #1157, #1158, #1166, #1170, #1178, #1182, #1184, #1185, #1186, #1187
Release 0.54
0b9ac1b
Refs #509, #1091, #1150, #1151, #1166, #1167, #1178, #1181, #1182, #1184, #1185, #1186, #1187, #1194, #1198
No branches or pull requests
Custom JavaScript can be loaded in
metadata.json
like this:Add a
"module": true
option which causes the resulting script element to use<script type="module">
The text was updated successfully, but these errors were encountered: