treeDataProviderHelper.uispin.html 577 Bytes
<ui:group xmlns:ui="http://uispin.org/ui#">
	[
        <ui:forEach ui:indexVar="index" ui:resultSet="{= ?resultSet }" ui:separator=",">
		{
			"data" : {
				"title" : "{= COALESCE(?label, ui:label(?node)) }"
				<ui:if ui:condition="{= bound(?icon) }">,
					"icon" : "{= ?icon }"
				</ui:if>
			},
			"attr" : {
				"id": "{= ui:encodeNode(?node) }::{= ui:uniqueId() }",
				"resource" : "{= IRI(?node) }"
			},
            <ui:if ui:condition="{= ?leaf }">
				"children" : []
			</ui:if>
			<ui:else>
				"state" : "closed"
			</ui:else>
		}
		</ui:forEach>
	]
</ui:group>