system.kanoa.dashboard.updateMarquee
Description
Updates a marqueeSyntax
updateMarquee(marqueeInfo, userId)- marqueeInfo (dict)
- - marqueeId (int)
- - marqueeName (string): The name of the marquee
- - marqueeDescription (string): Some information about the marquee
- - enabled (bool)
- userId (int)
- marqueeId (int)
- msg (string): error message, None if successful
Code Examples
# Example usage
userId = 123
marqueeId, msg = system.kanoa.dashboard.updateMarquee({'marqueeId': 4, 'marqueeName': 'Marquee #1', 'marqueeDescription': 'A collection of my favorite dashboards', 'enabled': False}, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Marquee has been updated')