diff options
Diffstat (limited to 'demos/tizen-winsets/widgets/pagelayout/barcontrol.js')
-rwxr-xr-x | demos/tizen-winsets/widgets/pagelayout/barcontrol.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/demos/tizen-winsets/widgets/pagelayout/barcontrol.js b/demos/tizen-winsets/widgets/pagelayout/barcontrol.js new file mode 100755 index 00000000..f7549b46 --- /dev/null +++ b/demos/tizen-winsets/widgets/pagelayout/barcontrol.js @@ -0,0 +1,29 @@ +$( document ).bind( "pagecreate", function () { + $( "#hideheader" ).bind( "vclick", function ( e ) { + var $elPage = $( ".ui-page-active" ); + + $elPage.find( ".ui-header" ).hide(); + $elPage.page( "refresh" ); + }); + + $( "#showheader" ).bind( "vclick", function ( e ) { + var $elPage = $( ".ui-page-active" ); + + $elPage.find( ".ui-header" ).show(); + $elPage.page( "refresh" ); + }); + + $( "#hidefooter" ).bind( "vclick", function ( e ) { + var $elPage = $( ".ui-page-active" ); + + $elPage.find( ".ui-footer" ).hide(); + $elPage.page( "refresh" ); + }); + + $( "#showfooter" ).bind( "vclick", function ( e ) { + var $elPage = $( ".ui-page-active" ); + + $elPage.find( ".ui-footer" ).show(); + $elPage.page( "refresh" ); + }); +}); |