Skip to main content

system.kanoa.dashboard.addMarquee

This function is part of the kanoaCore module

Description

Adds a new marquee

Syntax

addMarquee(marqueeInfo, userId)
  • Parameters
      marqueeInfo (dict)
      - marqueeName (string): The name of the marquee
      - marqueeDescription (string): Some information about the marquee
      - enabled (bool)
      userId (int)
  • Returns
      marqueeId (int)
      msg (string): error message, None if successful
  • Code Examples

    # Example usage
    userId = 123
    marqueeId, msg = system.kanoa.dashboard.addMarquee({'marqueeName': 'Marquee #1', 'marqueeDescription': 'A collection of my favorite dashboards', 'enabled': True}, userId)
    if msg: system.perspective.sendMessage('showFailerToast', msg)
    else: system.perspective.sendMessage('showSuccessfulToast', 'Marquee has been saved')