Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2012-01-04 13:47:02 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ea7a4d30b9b37dca3750d0c166b855164965ef3
5ea7a4d3
1 parent
3c4aaabc
Tree now uses SPIN templates
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
appschema.org/app.ui.ttl
appschema.org/imports/tree.uispin.html
appschema.org/imports/queryTreeDataProviderHelper.uispin.html → appschema.org/imports/treeDataProviderHelper.uispin.html
www.reportinghub.no/system/swp/SWP-logging.ui.ttl
appschema.org/app.ui.ttl
View file @
5ea7a4d
This diff is collapsed. Click to expand it.
appschema.org/imports/tree.uispin.html
View file @
5ea7a4d
...
...
@@ -2,7 +2,8 @@
ui:format=
"json"
ui:sendQueryGraph=
"true"
ui:snippet=
"true"
ui:view=
"{= ?dataProvider }"
>
ui:view=
"{= ?dataProvider }"
arg:root=
"{= ?root }"
>
<!-- The div that will be turned into a jsTree below -->
<div
id=
"{= ?id }"
/>
...
...
appschema.org/imports/
queryT
reeDataProviderHelper.uispin.html
→
appschema.org/imports/
t
reeDataProviderHelper.uispin.html
View file @
5ea7a4d
<ui:group
xmlns:ui=
"http://uispin.org/ui#"
>
[
<ui:if
ui:condition=
"{= spr:rowCount(?resultSet) > 0 }"
>
<ui:forEach
ui:indexVar=
"index"
ui:resultSet=
"{= ?resultSet }"
>
<ui:if
ui:condition=
"{= ?index > 0 }"
>
,
</ui:if>
<ui:forEach
ui:indexVar=
"index"
ui:resultSet=
"{= ?resultSet }"
ui:separator=
","
>
{
"data" : {
"title" : "{=
IF(bound(?label), ?label, ui:label(?child
)) }"
"title" : "{=
COALESCE(?label, ui:label(?node
)) }"
<ui:if
ui:condition=
"{= bound(?icon) }"
>
,
"icon" : "{= ?icon }"
</ui:if>
},
"attr" : {
"id": "{= ui:encodeNode(?
child
) }::{= ui:uniqueId() }",
"resource" : "{= IRI(?
child
) }"
"id": "{= ui:encodeNode(?
node
) }::{= ui:uniqueId() }",
"resource" : "{= IRI(?
node
) }"
},
<ui:if
ui:condition=
"{= ?leaf }"
>
"children" : []
...
...
@@ -20,7 +18,7 @@
<ui:else>
"state" : "closed"
</ui:else>
}
</ui:forEach>
</ui:if
>
}
</ui:forEach
>
]
</ui:group>
\ No newline at end of file
...
...
www.reportinghub.no/system/swp/SWP-logging.ui.ttl
View file @
5ea7a4d
...
...
@@ -48,9 +48,10 @@ log:LogBrowser
html:
class
"ui-layout-content"
^^
xsd:
string
;
ui:
child
[
rdf:
type
app:
Tree
;
arg:
dataProvider
log:
LogEvent
ClassTreeDataProvider
;
arg:
dataProvider
app:
ClassTreeDataProvider
;
arg:
id
"classTree"
^^
xsd:
string
;
arg:
onSelect
"appLoadWithResource('form', 'resourceType', resource)"
^^
xsd:
string
;
arg:
root
"log:LogEvent"
^^
xsd:
string
;
ui:
childIndex
0
]
;
ui:
childIndex
1
...
...
Please
register
or
login
to post a comment