Author: jmorliaguet Date: Sat Jan 7 15:56:53 2006 New Revision: 2183 Modified: cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_observer_test.html Log:
- added a contextual menu that gets updated when the data changes Modified: cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_observer_test.html ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_observer_test.html (original) +++ cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_observer_test.html Sat Jan 7 15:56:53 2006 @@ -54,6 +54,7 @@ var data = Canvas.getNodeData("data-provider"); data.size += 1; data.hint = "The size is now " + data.size; + data.sizeinfo[0].label = data.size; Canvas.updateNodeData("data-provider", data); } @@ -106,9 +107,22 @@ <p>The views observe the model. When the model changes the views gets updated.</p> - <!-- model: {"size": 1} --> + <!-- model: { + "size": 1, + "sizeinfo": [{"choice":"", "label":""}] + } + --> <div id="data-provider">DATA PROVIDER</div> - <cpsskins:view widget="tooltip"></cpsskins:view> + + <!-- tooltip view --> + <cpsskins:view widget="tooltip" showdelay="1500"></cpsskins:view> + + <!-- contextual menu view --> + <cpsskins:view widget="contextmenu"> + <submenu label="Size info"> + <items choices="sizeinfo"></items> + </submenu> + </cpsskins:view> <h2>progress bar widget</h2> <cpsskins:view widget="progressbar" observe="data-provider"></cpsskins:view> -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins