ForgeKomponenty
sk

Komponenty

j-JSONTree

jComponent 20 · jcomponent@20 component Príklad načítaný s jComponent 20

j-JSONTree vytvára stromové zobrazenie z údajov json.


Konfigurácia:

  • click {String} odkaz na function(selected_path, component)

Použite ho so <ui-component name="jsontree">. Keď komponent ešte nie je načítaný, jComponent ho stiahne pri prvom použití z adresy v DEF.fallback (predvolene CDN Componentator). Autor: Martin Smola. Zdroj: úložisko komponentov Componentator, licencia MIT.

example.html
<ui-component name="jsontree" path="json" config="click:jsontree_click">Sample JSON data</ui-component>
<script>

	setTimeout(function() {
		SET('json', '{"datecreated":"2018-06-18T22:27:00.000Z","name":"j-JSONTree","color":"transparent","version":1,"responsive":true,"picture":"picture.png","dependencies":"","author":"Martin Smola","email":"smola.martin@gmail.com","license":"MIT"}');
	}, 2000);

	function jsontree_click(path) {
		console.log('Path:', path);
	};
</script>