# j-Pictures

> The component displays images in a simple list. A user can remove and rearrange images.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: bdd836b7efb637e0d883041197026841fb99ae2b19195c2f40a166a7e2ee2ef8
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

The component displays images in a simple list. A user can remove and rearrange images.

- it uses `j-Movable` component

__Configuration__:

- `grid {Number}` a column count in the grid (default: `4`)

---

A value be `Array` in the form:

```
[
	"/url_to_image_1.jpeg",
	"/url_to_image_2.jpeg",
	"/url_to_image_3.jpeg",
	"/url_to_image_4.jpeg"
]
```

Use it with `<ui-component name="pictures">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="pictures" path="common.pictures"></ui-component>

<script>

	var common = {};

	common.pictures = [];
	common.pictures.push('https://cdn.pixabay.com/photo/2020/07/31/07/59/flowers-5452263__340.jpg');
	common.pictures.push('https://cdn.pixabay.com/photo/2020/12/13/16/21/stork-5828727__340.jpg');
	common.pictures.push('https://cdn.pixabay.com/photo/2021/01/30/14/22/women-5963963__340.jpg');
	common.pictures.push('https://cdn.pixabay.com/photo/2021/02/11/08/43/couple-6004642__340.jpg');

</script>
```
