source: Dev/branches/rest-dojo-ui/client/pages/sessions.html @ 260

Last change on this file since 260 was 260, checked in by hendrikvanantwerpen, 13 years ago
  • Clear LoginDialog? on show (in case of re-show).
  • Allow to link nodes/widgets to rft.ui.Page members with data-rft-attach-point attribute.
  • Allow arguments to a page to be passed with data-rft-props argument. Content loader rft.content sets this argument on the top node of a loaded page.
  • Have longer cookie-lifetime and update cookie when session is restored. Allow session restore in API and client code.
  • Moved startup Javascript to rft/run.js.
File size: 1.1 KB
Line 
1<div data-dojo-type="rft.ui.Page">
2    <script type="dojo/method" data-dojo-event="init">
3        var that = this;
4        require(['dojo/store/JsonRest','dojox/grid/DataGrid',
5                'dojo/data/ObjectStore','dojo/domReady!'],
6        function(JsonRest,DataGrid,ObjectStore){
7            var store = new JsonRest({
8                target:"../server/api.php/data/Session/",
9                idProperty: 'uid'
10            });
11            var grid = new DataGrid({
12                store: ObjectStore({objectStore: store}),
13                autoWidth: true,
14                autoHeight: true,
15                structure: [
16                        {name:"Title", field:"title", width: "200px"}
17                ]
18            }, that.page_sessions_grid);
19            grid.startup();
20        });
21    </script>
22    <div class="largeFrame" style="width: 400px;">
23        <div class="largeTitle">Sessions</div>
24        <div class="content">
25            <div data-rft-attach-point="page_sessions_grid"></div>
26        </div>
27    </div>
28
29</div>
Note: See TracBrowser for help on using the repository browser.