blob: 7294a7825b2ea6eb9832b33aa558c765de0c6643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div data-role="page" data-add-back-btn="none">
<div data-role="header" data-position="fixed" >
<h1>Back button to Header</h1>
</div>
<div data-role="content">
<p> Case 7 : <br><br>
Web Developer declared only footer in page<br>
but need to add back button dynamically <br>
select footer and call barlayout("addBackBtn") API<br></p>
<div>
<p style="width:100%; padding:1em; background-color:whitesmoke; color:black; border-width:3px; border-style:inset">
<div data-role="page" data-add-back-btn="none"> <br>
    <div data-role="header" data-position="fixed"> <br>
        <h1>back button sample</h1> <br>
    </div> <br>
    <div data-role="content"> <br>
    </div> <br>
    <div data-role="footer"> <br>
    </div> <br>
</div> </p>
</div><br>
<div>
<p style="width:100%; padding:1em; background-color:whitesmoke; color:black; border-width:3px; border-style:inset">
<script> <br>
var $elFooter = $(".ui-page-active").find(".ui-footer"); <br>
$elFooter.barlayout("addBackBtn"); <br>
</script> <br>
</p>
</div><br>
<a id="genBackToFooter" data-role="button" data-inline="true">Generate backbutton to footer</a><br><br>
<a href="../backbutton-control.html" data-role="button" data-inline="true">Go Back</a>
</div>
<div data-role="footer">
</div>
</div>
</body>
</html>
|