MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_own_menuitems

Method get_own_menuitems

web/pgadmin/help/__init__.py:22–51  ·  view source on GitHub ↗

Return a (set) of dicts of help menu items, with name, priority, URL, target and onclick code.

(self)

Source from the content-addressed store, hash-verified

20
21class HelpModule(PgAdminModule):
22 def get_own_menuitems(self):
23 """Return a (set) of dicts of help menu items, with name, priority,
24 URL, target and onclick code."""
25 return {'help_items': [
26 MenuItem(name='mnu_quick_search_help',
27 label=gettext('Quick Search'),
28 priority=99,
29 target='pgadmin_quick_search_help',
30 icon='fa fa-question',
31 url='#'),
32 MenuItem(name='mnu_online_help',
33 label=gettext('Online Help'),
34 priority=100,
35 target='pgadmin_help',
36 icon='fa fa-question',
37 url=url_for('help.static', filename='index.html')),
38
39 MenuItem(name='mnu_pgadmin_website',
40 label=gettext('pgAdmin Website'),
41 priority=200,
42 target='pgadmin_website',
43 icon='fa fa-external-link-alt',
44 url='https://www.pgadmin.org/'),
45
46 MenuItem(name='mnu_postgresql_website',
47 label=gettext('PostgreSQL Website'),
48 priority=300,
49 target='postgres_website',
50 icon='fa fa-external-link-alt',
51 url='https://www.postgresql.org/')]}
52
53 def register_preferences(self):
54 """

Callers

nothing calls this directly

Calls 2

MenuItemClass · 0.90
gettextFunction · 0.85

Tested by

no test coverage detected