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
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
11 <div class="ui-demo-namecard-contents">
\r
12 <span class="name ui-li-text-main">${NAME}</span>
\r
16 <div id="virtualgrid-demo" data-role="virtualgrid" data-itemcount="3" data-rotation="false" data-template="tizen-demo-namecard">
\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
24 $( ":jqmData(role='virtualgrid')" ).virtualgrid( "create", {
\r
25 itemData: function ( idx ) {
\r
26 return JSON_DATA[ idx ];
\r
28 numItemData: JSON_DATA.length,
\r
29 cacheItemData: function ( minIdx, maxIdx ) {
\r
32 $( ".virtualgrid_grid_demo_page" ).unbind("pagecreate");
\r