j-JSONTree
j-JSONTree erstellt eine Baumansicht aus JSON-Daten.
Konfiguration:
click {String}ein Link zumfunction(selected_path, component)
Verwenden Sie es mit <ui-component name="jsontree">. Wenn die Komponente noch nicht geladen ist, lädt jComponent sie bei der ersten Verwendung von der Adresse in DEF.fallback herunter (standardmäßig das CDN Componentator). Autor: Martin Smola. Quelle: Componentator-Komponenten-Repository, MIT-Lizenz.
<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>