Added small block to remove default panels

Described details on removing default panels with example

Change-Id: I21ff642de4b0712ed1e06631dad2facd4fbc3675
This commit is contained in:
Karthik Suresh 2015-08-14 18:35:38 +05:30
parent 699b3f08bf
commit 2423203815

View File

@ -173,6 +173,17 @@ Or just remove it entirely::
projects_dashboard.unregister(instances_panel.__class__)
You cannot unregister a ``default_panel``. If you wish to remove a
``default_panel``, you need to make a different panel in the dashboard as a
``default_panel`` and then unregister the former. For example, if you wished
to remove the ``overview_panel`` from the ``Project`` dashboard, you could do
the following::
project = horizon.get_dashboard('project')
project.default_panel = "instances"
overview = project.get_panel('overview')
project.unregister(overview.__class__)
You can also override existing methods with your own versions::
# Disable Floating IPs