examples/bootstrap4/popover.html
[roojs1] / examples / bootstrap4 / popover.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>Bootstrap 101 Template</title>
5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
6     
7     <!-- Bootstrap -->
8     <link rel="stylesheet" href="../../css-bootstrap4/sb-admin-2.min.css">
9     <link rel="stylesheet" href="../../css-bootstrap4/roojs-bootstrap.css">
10      <link rel="stylesheet" href="../../fonts/font-awesome.css"> 
11          
12         
13          
14         
15         
16     <script type="text/javascript" src="../../roojs-core-debug.js"></script>
17     <script type="text/javascript" src="../../roojs-bootstrap-debug.js"></script>
18     <script type="text/javascript" src="../../Roo/bootstrap/Popover.js"></script>
19
20          <script type="text/javascript">
21             rootURL = '/';
22          </script>
23     <!-- test code -->
24     <script type="text/javascript" src="../bootstrap/popover.js"></script>
25   </head>
26   
27   <body id="body">
28   
29     <div id="right-test"
30          style="width: 100px;height: 100px;display: block;background-color: red;position: relative;left: 133px;top: 400px;"></div>
31     
32       <div id="below-test"
33          style="width: 100px;height: 100px;display: block;background-color: red;position: relative;left: 400px;top: 100px;"></div>
34       
35       <div id="below-bad-test"
36          style="width: 100px;height: 100px;display: block;background-color: red;position: relative;left: 400px;top: 500px;"></div>
37     
38      <div id="above-bad-test"
39          style="width: 100px;height: 100px;display: block;background-color: red;position: relative;left: 400px;top: 100px;"></div>
40     
41      <div id="above-test"
42          style="width: 100px;height: 100px;display: block;background-color: red;position: relative;left: 400px;top: 500px;"></div>
43     
44   </body>
45     <script type="text/javascript">
46        Roo.onReady(function() {
47           Roo.get('right-test').on('click', function(e) {
48             
49             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'right');
50           });
51           Roo.get('below-test').on('click', function(e) {
52             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'bottom');
53           });
54           
55           
56           //Pman.Popover.FileTest.show({   });
57           //Roo.get("bootstrap-body").on('click', function() { Pman.Popover.FileTest.show({ _el : Roo.get("bootstrap-body") }); })
58       });
59
60     </script>
61 </html>