Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • documentation/doc
  • PhilH/doc
  • louis.csn/doc
  • fabien4vo/doc
  • rngadam/doc
  • anastasia/doc
6 results
Show changes
......@@ -7,16 +7,17 @@ the base components to best render the content of the application :
.. toctree::
:maxdepth: 1
counter-mixin <counter-mixin>
federation-mixin <federation-mixin>
filter-mixin <filter-mixin>
grouper-mixin <grouper-mixin>
highlighter-mixin <highlighter-mixin>
list-mixin <list-mixin>
next-mixin <next-mixin>
paginate-mixin <paginate-mixin>
required-mixin <required-mixin>
sorter-mixin <sorter-mixin>
store-mixin <store-mixin>
validation-mixin <validation-mixin>
widget-mixin <widget-mixin>
/import_documentation/Mixins/counter-mixin
/import_documentation/Mixins/federation-mixin
/import_documentation/Mixins/filter-mixin
/import_documentation/Mixins/grouper-mixin
/import_documentation/Mixins/highlighter-mixin
/import_documentation/Mixins/list-mixin
/import_documentation/Mixins/next-mixin
/import_documentation/Mixins/paginate-mixin
/import_documentation/Mixins/required-mixin
/import_documentation/Mixins/server-pagination-mixin
/import_documentation/Mixins/sorter-mixin
/import_documentation/Mixins/store-mixin
/import_documentation/Mixins/validation-mixin
/import_documentation/Mixins/widget-mixin
\ No newline at end of file
......@@ -7,5 +7,5 @@ How to create them and how to use them are precised :
.. toctree::
:maxdepth: 1
Widget API Reference <reference>
Examples <examples>
\ No newline at end of file
/import_documentation/Widgets/Reference
/import_documentation/Widgets/Examples
\ No newline at end of file
......@@ -144,4 +144,17 @@ The store is reactive. It means that any change you make on a resource in your a
However, there are some limitations:
* If you make some changes on a resource which is in a virtual container, other virtual containers including this resource may not be updated. (ie: POST on ``circles/1/members`` does not update ``users/admin/circles/``)
* If a resource a multi nested field is displayed in a component, it may not be updated. (ie: in a ``sib-display``, I display ``nestedResource.user.name`` from ``resource``, changing ``user`` will not update the display)
\ No newline at end of file
* If a resource having a multi nested field is displayed in a component, it may not be updated. (ie: in a ``sib-display``, I display ``nestedResource.user.name`` from ``resource``, changing ``user`` will not update the display)
In response to these two cases, the store method ``subscribeVirtualContainerTo(arg1, arg2)`` allows changes in one resource to be passed on to another reactively:
- ``arg1`` is the resource to be updated according to ``arg2``,
- ``arg2`` is the starting resource, the model to copy.
The following example illustrates the reactivity of a component displaying job offers.
A container is providing a list of job offers (``http://localhost/job-offers/active/``), another endpoint is used to create new job offers (``http://localhost/job-offers/``). Each time a job offer is created (added to ``http://localhost/job-offers/``), the displayed list of job offers (``http://localhost/job-offers/active/``) requires an update:
.. code:: javascript
core.store.subscribeVirtualContainerTo(http://localhost/job-offers/active/, http://localhost/job-offers/);
\ No newline at end of file
......@@ -26,10 +26,11 @@ Welcome to Startinblox's documentation
import_documentation/framework_guide/how-to-use-the-documentation
import_documentation/framework_guide/list-base-components
import_documentation/framework_guide/list-external-components
import_documentation/framework_guide/list-mixins
import_documentation/framework_guide/attributes-list
import_documentation/framework_guide/list-widgets
import_documentation/framework_guide/list-mixins
import_documentation/framework_guide/javascript-API
import_documentation/framework_guide/how-to-use-SIB
.. toctree::
:maxdepth: 2
......