# Add Collections To UI

Agregar colección a la interfaz de usuario es una función en las funciones de [elementos](https://docs.apphive.io/reference/funciones/elements) que permite crear listas de elementos y modificar utilizando los registros en los datos de la [base de datos.](https://docs.apphive.io/reference/funciones/elements/add-collections-to-ui)

![](https://1781865142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvaO9X8rr2FG8JwKkhC-1769347644%2Fuploads%2Fgit-blob-0a6afeb2cbc26275f69e58636feed4c9337a5883%2FCaptura%20de%20Pantalla%202020-02-10%20a%20la\(s\)%2010.26.28.png?alt=media)

### 📥 Entry vars (Variables de entrada) <a href="#entry-vars" id="entry-vars"></a>

* **Enable horizontal:** puede seleccionar para ver su lista de forma horizontal
* **List data:** seleccione la salida para recuperar la lista.
* **List instructions.**
* **Modify element:** abre un modificador en los elementos de tu lista.
* **List reverse:** cambiar el orden de los elementos de la lista.
* **Scroll inverted:** cambiar la dirección del desplazamiento en la lista.

### 👉 Ejemplo. <a href="#examples" id="examples"></a>

![](https://1781865142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvaO9X8rr2FG8JwKkhC-1769347644%2Fuploads%2Fgit-blob-1b1f9cb1deaef9cce8b1ed9a0451b5f571850fd8%2Fezgif.com-video-to-gif%20\(10\).gif?alt=media)

**Utilice el elemento de la base de datos**.

1. Activate the [get database data](https://docs.apphive.io/apphive-documentacion/reference/funciones/cloud-database/get-database-data) and open database path.
2. Add a collection "Driver list"
3. Add fields "address, name, phone number, photo and plates"
4. Push the button view data
5. Press the button Add to add a record to "Driver list".

#### Add a collection to UI.

1. Add a collection to UI in the callback of the get [database data](https://docs.apphive.io/apphive-documentacion/reference/base-de-datos) when data obtained.
2. Select the previous output get database data in the list data.
3. Click on the button [modify elements](https://docs.apphive.io/apphive-documentacion/reference/funciones/elements/modify-control).
4. Select a container with elements to modify.
5. Click on list data and select the element to modify.
6. Select a control property to change like text.
7. Open the list context and write the name of the element to show in the database.

![Reload the page to check the modified elements in your list.](https://1781865142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvaO9X8rr2FG8JwKkhC-1769347644%2Fuploads%2Fgit-blob-68e93053eb3c12aea766d3278e5d2bb924737a07%2Fezgif.com-video-to-gif%20\(12\).gif?alt=media)
