# j-Diagram

> Opcje j-Diagram: margines, marginxs, marginmd, marginlg, reverse

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

__Konfiguracja__:

- `parent {String}` Opcjonalnie, pojemnik o stałej wysokości może być `window`Podstawowe wartości: `parent` elementy .
- `margin {Number}` opcjonalny, górna / dolna marża razem (default: `0`)
- `marginxs {Number}` opcjonalny, górna / dolna margina razem dla szerokości ekranu `xs`
- `marginsm` opcjonalny, górna / dolna margina razem dla szerokości ekranu `sm`
- `marginmd` opcjonalny, górna / dolna margina razem dla szerokości ekranu `md`
- `marginlg` opcjonalny, górna / dolna margina razem dla szerokości ekranu `lg`
- `reverse {Boolean}`, odwrotny diagram

Użyj go z `<ui-component name="diagram">`Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu `DEF.fallback` (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja MIT.

```html example.html
<div style="width:600px;height:400px;border:1px solid #E0E0E0">
	<ui-component name="diagram" path="items" class="invisible">
		<script type="text/html">
			<div style="padding:10px;{{ if id === 'AA' }}width:200px;height:150px{{ fi }}{{ if id === 'BC' }}height:100px{{ fi }}">{{ id }}</div>
		</script>
	</ui-component>
</div>

<script>

	var items = [];
	items.push({ id: 'A', items: [{ id: 'AA', items: [{ id: 'AAA' }] }] });
	items.push({ id: 'B', items: [{ id: 'BA' }, { id: 'BB' }, { id: 'BC', items: [{ id: 'BCA' }] }] });
	items.push({ id: 'C', items: [{ id: 'CA', items: [{ id: 'CAA' }] }, { id: 'CB' }, { id: 'CC' }, { id: 'CD', items: [{ id: 'CDA' }] }] });

</script>
```
