Showing
4 changed files
with
10 additions
and
10 deletions
This diff is collapsed. Click to expand it.
| ... | @@ -2,7 +2,8 @@ | ... | @@ -2,7 +2,8 @@ |
| 2 | ui:format="json" | 2 | ui:format="json" |
| 3 | ui:sendQueryGraph="true" | 3 | ui:sendQueryGraph="true" |
| 4 | ui:snippet="true" | 4 | ui:snippet="true" |
| 5 | - ui:view="{= ?dataProvider }"> | 5 | + ui:view="{= ?dataProvider }" |
| 6 | + arg:root="{= ?root }"> | ||
| 6 | 7 | ||
| 7 | <!-- The div that will be turned into a jsTree below --> | 8 | <!-- The div that will be turned into a jsTree below --> |
| 8 | <div id="{= ?id }" /> | 9 | <div id="{= ?id }" /> | ... | ... |
| 1 | <ui:group xmlns:ui="http://uispin.org/ui#"> | 1 | <ui:group xmlns:ui="http://uispin.org/ui#"> |
| 2 | [ | 2 | [ |
| 3 | - <ui:if ui:condition="{= spr:rowCount(?resultSet) > 0 }"> | 3 | + <ui:forEach ui:indexVar="index" ui:resultSet="{= ?resultSet }" ui:separator=","> |
| 4 | - <ui:forEach ui:indexVar="index" ui:resultSet="{= ?resultSet }"> | ||
| 5 | - <ui:if ui:condition="{= ?index > 0 }">,</ui:if> | ||
| 6 | { | 4 | { |
| 7 | "data" : { | 5 | "data" : { |
| 8 | - "title" : "{= IF(bound(?label), ?label, ui:label(?child)) }" | 6 | + "title" : "{= COALESCE(?label, ui:label(?node)) }" |
| 9 | <ui:if ui:condition="{= bound(?icon) }">, | 7 | <ui:if ui:condition="{= bound(?icon) }">, |
| 10 | "icon" : "{= ?icon }" | 8 | "icon" : "{= ?icon }" |
| 11 | </ui:if> | 9 | </ui:if> |
| 12 | }, | 10 | }, |
| 13 | "attr" : { | 11 | "attr" : { |
| 14 | - "id": "{= ui:encodeNode(?child) }::{= ui:uniqueId() }", | 12 | + "id": "{= ui:encodeNode(?node) }::{= ui:uniqueId() }", |
| 15 | - "resource" : "{= IRI(?child) }" | 13 | + "resource" : "{= IRI(?node) }" |
| 16 | }, | 14 | }, |
| 17 | <ui:if ui:condition="{= ?leaf }"> | 15 | <ui:if ui:condition="{= ?leaf }"> |
| 18 | "children" : [] | 16 | "children" : [] |
| ... | @@ -20,7 +18,7 @@ | ... | @@ -20,7 +18,7 @@ |
| 20 | <ui:else> | 18 | <ui:else> |
| 21 | "state" : "closed" | 19 | "state" : "closed" |
| 22 | </ui:else> | 20 | </ui:else> |
| 23 | - }</ui:forEach> | 21 | + } |
| 24 | - </ui:if> | 22 | + </ui:forEach> |
| 25 | ] | 23 | ] |
| 26 | </ui:group> | 24 | </ui:group> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -48,9 +48,10 @@ log:LogBrowser | ... | @@ -48,9 +48,10 @@ log:LogBrowser |
| 48 | html:class "ui-layout-content"^^xsd:string ; | 48 | html:class "ui-layout-content"^^xsd:string ; |
| 49 | ui:child | 49 | ui:child |
| 50 | [ rdf:type app:Tree ; | 50 | [ rdf:type app:Tree ; |
| 51 | - arg:dataProvider log:LogEventClassTreeDataProvider ; | 51 | + arg:dataProvider app:ClassTreeDataProvider ; |
| 52 | arg:id "classTree"^^xsd:string ; | 52 | arg:id "classTree"^^xsd:string ; |
| 53 | arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ; | 53 | arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ; |
| 54 | + arg:root "log:LogEvent"^^xsd:string ; | ||
| 54 | ui:childIndex 0 | 55 | ui:childIndex 0 |
| 55 | ] ; | 56 | ] ; |
| 56 | ui:childIndex 1 | 57 | ui:childIndex 1 | ... | ... |
-
Please register or login to post a comment