Holger Knublauch

Switched to new tree

......@@ -5479,24 +5479,13 @@ app:TreeChildrenTemplates
app:TreeDataProvider
rdf:type ui:NodeClass ;
rdfs:comment "A TreeDataProvider is backed by two SELECT queries - one to get the roots, and one to get the children of a given node."^^xsd:string ;
rdfs:comment """Instances of this class are used as server callbacks to drive an app:Tree.
A TreeDataProvider is backed by two SELECT queries - one to get the roots, and one to get the children of a given node. Optionally, a root resource can be supplied to overload the default root(s)."""^^xsd:string ;
rdfs:label "Tree data provider"^^xsd:string ;
rdfs:subClassOf app:TreeElements ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The id of the node to get the children of."^^xsd:string ;
spl:predicate arg:id ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The root resource. If none is specified, then the system will use compute the root(s) from the roots template."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:root ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subclass of app:TreeChildrenTemplates that delivers the children of a given parent node."^^xsd:string ;
spl:predicate arg:treeChildrenTemplate ;
spl:valueType spin:Template
......@@ -5510,12 +5499,17 @@ app:TreeDataProvider
] ;
ui:prototype
[ rdf:type ui:group ;
let:id [ rdf:type ui:param ;
sp:arg1 "id"
] ;
ui:child
[ rdf:type ui:if ;
ui:child
[ rdf:type ui:call ;
arg:root
[ sp:varName "root"^^xsd:string
[ rdf:type ui:param ;
sp:arg1 "root" ;
sp:arg2 rdfs:Resource
] ;
ui:child
[ rdf:type app:TreeDataProviderHelper ;
......
......@@ -51,7 +51,7 @@ log:LogBrowser
arg:dataProvider app:ClassTreeDataProvider ;
arg:id "classTree"^^xsd:string ;
arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ;
arg:root "log:LogEvent"^^xsd:string ;
arg:root log:LogEvent ;
ui:childIndex 0
] ;
ui:childIndex 1
......