Extended documentation to include replace feature for plugin template components

This commit is contained in:
Gina Häußge 2015-02-24 09:29:02 +01:00
parent 2fac5c76d9
commit 543b8df48b
3 changed files with 33 additions and 0 deletions

View file

@ -19,6 +19,7 @@ additional slicers. More plugin types are planned for the future.
using.rst
gettingstarted.rst
infrastructure.rst
templates.rst
distributing.rst
mixins.rst
hooks.rst

View file

@ -0,0 +1,8 @@
.. _sec-plugins-templates:
Templates
=========
.. todo::
Needs to be written.

View file

@ -201,6 +201,12 @@ class TemplatePlugin(Plugin):
- Suffix to attach to the element ID of the injected template, will be ``_<index>`` if not provided and not
the first template of the type, with ``index`` counting from 1 and increasing for each template of the same
type.
* - div
- Id for the div containing the component. If not provided, defaults to ``plugin_<pluginname>`` plus
the suffix if provided or required.
* - replaces
- Id of navbar component this one replaces, might be either one of the core components or a component
provided by another plugin. See :ref:`this section <sec-plugins-templates>` for more on replacing template components.
* - custom_bindings
- A boolean value indicating whether the default view model should be bound to the navbar entry (``false``)
or if a custom binding will be used by the plugin (``true``, default).
@ -238,6 +244,12 @@ class TemplatePlugin(Plugin):
- Suffix to attach to the element ID of the injected template, will be ``_<index>`` if not provided and not
the first template of the type, with ``index`` counting from 1 and increasing for each template of the same
type.
* - div
- Id for the div containing the component. If not provided, defaults to ``plugin_<pluginname>`` plus
the suffix if provided or required.
* - replaces
- Id of sidebar component this one replaces, might be either one of the core components or a component
provided by another plugin. See :ref:`this section <sec-plugins-templates>` for more on replacing template components.
* - custom_bindings
- A boolean value indicating whether the default view model should be bound to the sidebar container (``false``)
or if a custom binding will be used by the plugin (``true``, default).
@ -279,6 +291,12 @@ class TemplatePlugin(Plugin):
- Suffix to attach to the element ID of the injected template, will be ``_<index>`` if not provided and not
the first template of the type, with ``index`` counting from 1 and increasing for each template of the same
type.
* - div
- Id for the div containing the component. If not provided, defaults to ``plugin_<pluginname>`` plus
the suffix if provided or required.
* - replaces
- Id of tab component this one replaces, might be either one of the core components or a component
provided by another plugin. See :ref:`this section <sec-plugins-templates>` for more on replacing template components.
* - custom_bindings
- A boolean value indicating whether the default view model should be bound to the tab pane and link
in the navigation (``false``) or if a custom binding will be used by the plugin (``true``, default).
@ -320,6 +338,12 @@ class TemplatePlugin(Plugin):
- Suffix to attach to the element ID of the injected template, will be ``_<index>`` if not provided and not
the first template of the type, with ``index`` counting from 1 and increasing for each template of the same
type.
* - div
- Id for the div containing the component. If not provided, defaults to ``plugin_<pluginname>`` plus
the suffix if provided or required.
* - replaces
- Id of settings component this one replaces, might be either one of the core components or a component
provided by another plugin. See :ref:`this section <sec-plugins-templates>` for more on replacing template components.
* - custom_bindings
- A boolean value indicating whether the default settings view model should be bound to the settings pane and link
in the navigation (``false``) or if a custom binding will be used by the plugin (``true``, default).