Allow the user to close the dashboard panel. Fixes #2506

This commit is contained in:
Khushboo Vashi
2017-06-27 09:21:24 -04:00
committed by Dave Page
parent c65158312d
commit a87ee6d059
7 changed files with 71 additions and 19 deletions
+3 -1
View File
@@ -18,7 +18,7 @@ class MenuItem(object):
class Panel(object):
def __init__(self, name, title, content='', width=500, height=600, isIframe=True,
showTitle=True, isCloseable=True, isPrivate=False, priority=None,
icon=None, data=None, events=None):
icon=None, data=None, events=None, limit=None, canHide=False):
self.name = name
self.title = title
self.content = content
@@ -31,6 +31,8 @@ class Panel(object):
self.icon = icon
self.data = data
self.events = events
self.limit = limit
self.canHide = canHide
if priority is None:
global PRIORITY
PRIORITY += 100