2.0_beta sync to rsa
[framework/web/web-ui-fw.git] / demos / tizen-winsets / widgets / grid / virtualgrid.html
1 <div id="virtualgrid_grid_page" data-role="page" class="virtualgrid_grid_demo_page">\r
2         <div id="normal" data-role="header" data-position="fixed">\r
3                 <h1>Virtual Grid</h1>\r
4         </div>\r
5         <div data-role="content" data-scroll="none">\r
6                 <script id="tizen-demo-namecard" type="text/x-jquery-tmpl">\r
7                         <div class="ui-demo-rotation-namecard">\r
8                         <div class="ui-demo-namecard-pic">\r
9                         <img class="ui-demo-namecard-pic-img" src="${TEAM_LOGO}"  />\r
10                         </div>\r
11                         <div class="ui-demo-namecard-contents">\r
12                         <span class="name ui-li-text-main">${NAME}</span>\r
13                         </div>\r
14                         </div>\r
15                 </script>\r
16                 <div id="virtualgrid-demo" data-role="virtualgrid"  data-itemcount="3" data-rotation="false" data-template="tizen-demo-namecard">\r
17                 </div>\r
18         </div>\r
19         <script>\r
20                 $( ".virtualgrid_grid_demo_page" ).one( "pagecreate", function() {\r
21                         $.getScript( "./js/virtualgrid-db-demo.js", function( data, textStatus, jqXHR ) {\r
22                                 $( ".virtualgrid_demo_page" ).die();\r
23 \r
24                                 $( ":jqmData(role='virtualgrid')" ).virtualgrid( "create", {\r
25                                         itemData: function ( idx ) {\r
26                                                 return JSON_DATA[ idx ];\r
27                                         },\r
28                                         numItemData: JSON_DATA.length,\r
29                                         cacheItemData: function ( minIdx, maxIdx ) {\r
30                                         }\r
31                                 });\r
32                                 $( ".virtualgrid_grid_demo_page" ).unbind("pagecreate");\r
33                         });\r
34                 });\r
35         </script>\r
36 </div>\r