ForgeComponente
ro

Componente

j-JSONTree

jComponent 20 · jcomponent@20 component Exemplu încărcat cu jComponent 20

__j-JSONTree_ creează vizualizarea copacului din datele json.


Configurarea:

  • click {String} este un link la function(selected_path, component)

Utilizați-l cu <ui-component name="jsontree">Când componenta nu este încă încărcată, jComponent Descărcați-l la prima utilizare de la adresa DEF.fallback (în cazul Componentator Cuvânt cheie: Martin Smola, Sursă Componentator Componente de stocare, MIT licență.

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>