ForgeComponents
en

Components

j-Pictures

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

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.

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>