system.kanoa.dashboard.deleteWidget
Description
Deletes a widget.Syntax
deleteFolder(dashboardId, userId)- widgetId (int)
- int userId - User ID
- number of records modified (int)
- msg (string): error message, None if successful
Code Examples
# Example usage
userId = 123
widgetId = 4
retVal, msg = system.kanoa.dashboard.deleteWidget(widgetId, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Widget has been deleted')