Skip to content
Snippets Groups Projects
the-basics.rst 1.4 KiB
Newer Older
Alice Poggioli's avatar
Alice Poggioli committed
How works a Component ?
-----------------------

A component is a simple tag. Each component has its own attributes that
allow us to customize its behavior.

Let’s see an exemple with sib-display :

.. code:: html

   <sib-display
     data-src="http://api.myadress.com/users/"
     fields="first_name, last_name"
   ></sib-display>

This code will retrieve the data from the uri assigned to the data-src
attribute and display all fields present in the field attribute. See the
full explanation on `the doc of SiB Display <Components/SiB-Display>`__.


Default component available in the core
---------------------------------------

By importing the Startin’blox core, the following main components are
available :

-  `SiB Display <Components/SiB-Display>`__ - To display datas
-  `SiB Form <Components/SiB-Form>`__ - To display a form
-  `SiB Delete <Components/SiB-Delete>`__ - To delete datas
-  `SiB Ac Checker <Components/SiB-Ac-Checker>`__ - To manage permission
-  `Sib Widget <Components/SiB-Widget>`__ - To custom your rendering
-  `SiB Calendar <Components/SiB-Calendar>`__ - To display a calendar
-  `SiB Map <Components/SiB-Map>`__ - To display a map

Imagine your components !
-------------------------

There is `a tutorial <./How%20to%20make%20components%20?>`__ to learn
how to create your own components.

If you have any difficulties, don’t hesitate to ask people on `our
chat <community.startinblox.com>`__ :)