Demonstrate how to use jQuery libraries like sweetalert and datatable js #708
Closed
bobwatcherx
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 4 replies
-
Here is an example demonstrating sweetalert: ui.add_head_html('<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>')
async def show_alert():
await ui.run_javascript('Swal.fire("What a nice alert!")', respond=False)
ui.button('Show alert', on_click=show_alert) PRs for adding it to the documentation or for demonstrating DataTables are very welcome! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
any examples to use third party javascript libraries like sweetalert and datatable js . i read in the documentation there is a function run_javascript . how to use it . and can and Also write that up in the nicegui documentation. To be useful for others thanks
Beta Was this translation helpful? Give feedback.
All reactions