ForgeKomponenter
sv

Komponenter

j-JSONTree

jComponent 20 · jcomponent@20 component Exempel laddat med jComponent 20

__j-JSONTree_ skapar ett trädblick från json data.


Konfigurera:

  • click {String} en länk till function(selected_path, component)

Använd den med <ui-component name="jsontree">När komponenten ännu inte är laddad, jComponent Ladda ner den första gången från adressen i DEF.fallback (en av Componentator CDN av standard). författare: Martin Smola. källa: den Componentator Komponenterna i lager, MIT licens.

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>