mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Inherited the test, about & help module from PgAdminModule class to load
them automatically by PgAdmin.
This commit is contained in:
committed by
Ashesh Vashi
parent
eb6580b43a
commit
b626eec0fd
@@ -55,6 +55,13 @@ class PgAdminModule(Blueprint):
|
||||
"""
|
||||
return defaultdict(list)
|
||||
|
||||
def get_panels(self):
|
||||
"""
|
||||
Returns:
|
||||
list: a list of panel objects to add
|
||||
"""
|
||||
return []
|
||||
|
||||
@property
|
||||
def stylesheets(self):
|
||||
stylesheets = self.get_own_stylesheets()
|
||||
|
||||
@@ -1,6 +1,27 @@
|
||||
from collections import namedtuple
|
||||
|
||||
PRIORITY = 100
|
||||
|
||||
class MenuItem(object):
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self.__dict__.update(**kwargs)
|
||||
|
||||
class Panel(object):
|
||||
|
||||
def __init__(self, name, title, content, width=500, height=600, isIframe=True,
|
||||
showTitle=True, isCloseable=True, isPrivate=False, priority=None):
|
||||
self.name = name
|
||||
self.title = title
|
||||
self.content = content
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.isIfframe = isIframe
|
||||
self.showTitle = showTitle
|
||||
self.isCloseable = isCloseable
|
||||
self.isPrivate = isPrivate
|
||||
if priority is None:
|
||||
global PRIORITY
|
||||
PRIORITY += 100
|
||||
priority = PRIORITY
|
||||
self.priority = priority
|
||||
|
||||
Reference in New Issue
Block a user