Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
General documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anastasia Kryukova
General documentation
Commits
e70c1a01
Commit
e70c1a01
authored
4 years ago
by
Alice Poggioli
Browse files
Options
Downloads
Patches
Plain Diff
Add mixin
parent
5e2574ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/import_documentation/mixins.rst
+92
-0
92 additions, 0 deletions
source/import_documentation/mixins.rst
source/index.rst
+9
-1
9 additions, 1 deletion
source/index.rst
with
101 additions
and
1 deletion
source/import_documentation/mixins.rst
0 → 100644
+
92
−
0
View file @
e70c1a01
Features
#########
We call "mixins" features for SIB components. Basicly they provide attribute to it.
List
=====
[Description]
Attributes available:
--------------------
+------------+-----------------+---------+----------------------------------------+
| Name | expected | Default | Description |
+=======+=====================+=========+=========================================+
| order-by | | | |
+-----------+-----------------+---------+-----------------------------------------+
| counter | | | |
+-----------+-----------------+---------+-----------------------------------------+
Used in components:
-------------------
* link to `Sib-Display <SiB-Display>`__
* link to `Sib-Form <SiB-Form>`__
Store
=====
[Description]
Attributes available:
--------------------
+------------+-----------------+---------+----------------------------------------+
| Name | expected | Default | Description |
+=======+=====================+=========+=========================================+
| nested-field | | | |
+-----------+-----------------+---------+-----------------------------------------+
| | | | |
+-----------+-----------------+---------+-----------------------------------------+
Used in components:
-------------------
* link to `Sib-Display <SiB-Display>`__
* link to `Sib-Form <SiB-Form>`__
Events
######
Some event are available on specific wiget. You'll find corresponding events for your components in its documentation.
+------------+-----------------+---------+----------------------------------------+
| Event name | Parameters | Fired by | Fired when |
+=======+=====================+=========+=========================================+
| `resourceSelect` | `{detail:{resource}}` | `sib-display`, `sib-calendar`, `sib-map` | The user clicks an child in the list, with the resource as a detail of the event. |
+-----------+-----------------+---------+-----------------------------------------+
| `populate` | `{detail:{resource}}` | `sib-display`, `sib-form`, `sib-calendar`, `sib-map` | The component got and displayed all its datas. |
+-----------+-----------------+---------+-----------------------------------------+
| `save` | `{detail:{resource}}` | `sib-form` | The form has saved successfully. |
+-----------+-----------------+---------+-----------------------------------------+
Examples
========
Populate
--------
Use to do something if and when the element is generated.
.. code:: js
element.addEventListener("populate", event => {
// Do something when the element is generated.
})
Save
----
Use to do something when a form is successfully saved.
.. code:: js
form.addEventListener("save", event => {
// Do something when the form has been successfully saved.
});
This diff is collapsed.
Click to expand it.
source/index.rst
+
9
−
1
View file @
e70c1a01
...
...
@@ -21,7 +21,8 @@ Welcome to Startinblox's documentation!
import_documentation/install-sib-server
import_documentation/develop-sib-ldp-packages
import_documentation/server-architecture
import_documentation/core-framework-architecture
.. import_documentation/core-framework-architecture
.. import_documentation/component-architecture
...
...
@@ -48,6 +49,13 @@ Welcome to Startinblox's documentation!
import_documentation/Components/SiB-Map
import_documentation/Components/SiB-Ac-Checker
import_documentation/Components/SiB-Widget
.. toctree::
:maxdepth: 2
:caption: Mixins:
import_documentation/Components/mixins
.. toctree::
:maxdepth: 2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment