Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
1.2 KB
|
Line | |
---|
1 | <div data-dojo-type="rft.ui.Page"> |
---|
2 | <script type="dojo/method" data-dojo-event="startup"> |
---|
3 | require(['dojo/store/JsonRest','dojox/grid/DataGrid', |
---|
4 | Â Â Â Â 'dojo/data/ObjectStore','dojo/domReady!'], |
---|
5 | function(JsonRest,DataGrid,ObjectStore){ |
---|
6 | var store = new JsonRest({ |
---|
7 | target:"../server/api.php/data/Session/", |
---|
8 | idProperty: 'uid' |
---|
9 | }); |
---|
10 | Â Â Â Â var grid = new DataGrid({ |
---|
11 | Â Â Â Â Â Â Â Â store: ObjectStore({objectStore: store}), |
---|
12 | autoWidth: true, |
---|
13 | autoHeight: true, |
---|
14 | Â Â Â Â Â Â Â Â structure: [ |
---|
15 | Â Â Â Â Â Â Â Â Â Â Â Â {name:"Title", field:"title", width: "200px"}, |
---|
16 | Â Â Â Â Â Â Â Â Â Â Â Â {name:"Id", field:"uid", width: "200px"} |
---|
17 | Â Â Â Â Â Â Â Â ] |
---|
18 | Â Â Â Â }, "page_sessions_grid"); |
---|
19 | Â Â Â Â grid.startup(); |
---|
20 | }); |
---|
21 | </script> |
---|
22 | <div class="largeFrame" id="page_sessions" style="width: 400px;"> |
---|
23 | <div class="largeTitle">Sessions</div> |
---|
24 | <div class="content"> |
---|
25 | <div id="page_sessions_grid"></div> |
---|
26 | </div> |
---|
27 | </div> |
---|
28 | |
---|
29 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.