ajenti.plugins.dashboard.api

class ajenti.plugins.dashboard.api.ConfigurableWidget(ui, typeid=None, children=[], **kwargs)[source]

Base class for widgets with a configuration dialog

begin_configuration()[source]
create_config()[source]

Should return a default config dict

init()[source]
on_config(button)[source]
on_config_save()[source]

Called when user is done configuring the widget.

on_config_start()[source]

Called when user begins to configure the widget. Should populate the config dialog.

on_prepare()[source]

Widget should create its UI in this method. Called before self.config is created

on_start()[source]

Widget should populate its UI in this method. self.config is now available.

class ajenti.plugins.dashboard.api.DashboardWidget(ui, typeid=None, children=[], **kwargs)[source]

Base class for widgets (inherits ajenti.ui.UIElement).

config

current configuration dict of this widget instance

container
hidden = False

If True, user will not be able to add this widget through dashboard

icon = None

Widget icon name

index
name = '---'

Widget type name

save_config()[source]
typeid = 'dashboard:widget'
comments powered by Disqus