What I’m trying to do:
I have a form inside my UI. Whenever a user click submits, I want to show Notification stating success or failure.
What I’ve tried and what’s not working:
The form has a “submit” button, whenever it is clicked, a function is called. The function (for now) should only shows the success Notification which isn’t working. However, when I “show” notification in the init def, the Notification works
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
def submit_btn_click(self, **event_args):
Notification("Great", style="success", timeout=3).show()
The above code gives me error:
Externalerror: TypeError: $.notify is not a function
Please help