Extended documentation to include replace feature for plugin template components
This commit is contained in:
parent
2fac5c76d9
commit
543b8df48b
3 changed files with 33 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
8
docs/plugins/templates.rst
Normal file
8
docs/plugins/templates.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.. _sec-plugins-templates:
|
||||
|
||||
Templates
|
||||
=========
|
||||
|
||||
.. todo::
|
||||
|
||||
Needs to be written.
|
||||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue