| 1 |
<!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!-- |
| 2 |
Copyright 2017 The Closure Library Authors. All Rights Reserved. |
| 3 |
|
| 4 |
Use of this source code is governed by the Apache License, Version 2.0. |
| 5 |
See the COPYING file for details. |
| 6 |
--><html><head><meta charset="UTF-8"> |
| 7 |
|
| 8 |
<script src="../base.js"></script> |
| 9 |
|
| 10 |
<script>goog.require('goog.ui.SubMenuTest');</script> |
| 11 |
<title>Closure Unit Tests - goog.ui.SubMenuTest</title><!-- |
| 12 |
Copyright 2017 The Closure Library Authors. All Rights Reserved. |
| 13 |
|
| 14 |
Use of this source code is governed by the Apache License, Version 2.0. |
| 15 |
See the COPYING file for details. |
| 16 |
--> |
| 17 |
<style type="text/css"> |
| 18 |
.goog-menu { |
| 19 |
position: absolute; |
| 20 |
color: #000; |
| 21 |
border: 1px solid #B5B6B5; |
| 22 |
background-color: #F3F3F7; |
| 23 |
cursor: default; |
| 24 |
font: normal small arial, helvetica, sans-serif; |
| 25 |
margin: 0; |
| 26 |
padding: 0; |
| 27 |
outline: none; |
| 28 |
} |
| 29 |
|
| 30 |
.goog-menuitem { |
| 31 |
padding: 2px 1.5em 2px 5px; |
| 32 |
margin: 0; |
| 33 |
list-style: none; |
| 34 |
} |
| 35 |
|
| 36 |
.goog-menuitem-rtl { |
| 37 |
padding: 2px 5px 2px 1.5em; |
| 38 |
} |
| 39 |
|
| 40 |
.goog-submenu-arrow { |
| 41 |
text-align: right; |
| 42 |
position: absolute; |
| 43 |
right: 0; |
| 44 |
left: auto; |
| 45 |
} |
| 46 |
|
| 47 |
.goog-menuitem-rtl .goog-submenu-arrow { |
| 48 |
text-align: left; |
| 49 |
position: absolute; |
| 50 |
left: 0; |
| 51 |
right: auto; |
| 52 |
} |
| 53 |
|
| 54 |
.goog-menuitem-disabled .goog-submenu-arrow { |
| 55 |
display: none; |
| 56 |
} |
| 57 |
</style> |
| 58 |
</head><body><p> |
| 59 |
Here's a menu (with submenus) defined in markup: |
| 60 |
</p> |
| 61 |
<div class="goog-menu" id="demoMenu"> |
| 62 |
<div class="goog-menuitem"> |
| 63 |
Open... |
| 64 |
</div> |
| 65 |
<div class="goog-submenu"> |
| 66 |
Open Recent |
| 67 |
<div class="goog-menu"> |
| 68 |
<div class="goog-menuitem"> |
| 69 |
Annual Report.pdf |
| 70 |
</div> |
| 71 |
<div class="goog-menuitem"> |
| 72 |
Quarterly Update.pdf |
| 73 |
</div> |
| 74 |
<div class="goog-menuitem"> |
| 75 |
Enemies List.txt |
| 76 |
</div> |
| 77 |
<div class="goog-submenu"> |
| 78 |
More |
| 79 |
<div class="goog-menu"> |
| 80 |
<div class="goog-menuitem"> |
| 81 |
Foo.txt |
| 82 |
</div> |
| 83 |
<div class="goog-menuitem"> |
| 84 |
Bar.txt |
| 85 |
</div> |
| 86 |
</div> |
| 87 |
</div> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
<div id="sandbox"> |
| 92 |
</div></body></html> |