Ignore:
Timestamp:
02/14/12 18:22:25 (13 years ago)
Author:
hendrikvanantwerpen
Message:
  • 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:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/pages/sessions.html

    r257 r260  
    11<div data-dojo-type="rft.ui.Page">
    2     <script type="dojo/method" data-dojo-event="init" data-dojo-args="args">
     2    <script type="dojo/method" data-dojo-event="init">
     3        var that = this;
    34        require(['dojo/store/JsonRest','dojox/grid/DataGrid',
    45                'dojo/data/ObjectStore','dojo/domReady!'],
     
    89                idProperty: 'uid'
    910            });
    10                 var grid = new DataGrid({
    11                         store: ObjectStore({objectStore: store}),
     11            var grid = new DataGrid({
     12                store: ObjectStore({objectStore: store}),
    1213                autoWidth: true,
    1314                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();
     15                structure: [
     16                        {name:"Title", field:"title", width: "200px"}
     17                ]
     18            }, that.page_sessions_grid);
     19            grid.startup();
    2020        });
    2121    </script>
    22     <div class="largeFrame" id="page_sessions" style="width: 400px;">
     22    <div class="largeFrame" style="width: 400px;">
    2323        <div class="largeTitle">Sessions</div>
    2424        <div class="content">
    25             <div id="page_sessions_grid"></div>
     25            <div data-rft-attach-point="page_sessions_grid"></div>
    2626        </div>
    2727    </div>
Note: See TracChangeset for help on using the changeset viewer.