Allow the dashboard panel to be closed. Fixes #2506

This commit is contained in:
Khushboo Vashi
2017-06-30 10:11:34 +01:00
committed by Dave Page
parent 2d65312910
commit 501120701e
8 changed files with 73 additions and 21 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