|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
2 <html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#"> |
|
3 <head> |
|
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
5 <title>API: overlay Overlay.js (YUI Library)</title> |
|
6 |
|
7 <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> |
|
8 <link rel="stylesheet" type="text/css" href="assets/api.css" /> |
|
9 |
|
10 <script type="text/javascript" src="assets/api-js"></script> |
|
11 <script type="text/javascript" src="assets/ac-js"></script> |
|
12 </head> |
|
13 |
|
14 <body id="yahoo-com"> |
|
15 |
|
16 <div id="doc3" class="yui-t2"> |
|
17 <div id="hd"> |
|
18 <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1> |
|
19 <h3>overlay <span class="subtitle">3.0.0b1</span></h3> |
|
20 <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
21 > <a href="./module_overlay.html" title="overlay">overlay</a> |
|
22 |
|
23 > Overlay.js (source view) |
|
24 <form onsubmit="return false"> |
|
25 <div id="propertysearch"> |
|
26 Search: <input autocomplete="off" id="searchinput" /> |
|
27 <div id="searchresults"> |
|
28 |
|
29 </div> |
|
30 </div> |
|
31 </form> |
|
32 </div> |
|
33 |
|
34 <div id="bd"> |
|
35 <div id="yui-main"> |
|
36 <div class="yui-b"> |
|
37 <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form"> |
|
38 <fieldset> |
|
39 <legend>Filters</legend> |
|
40 <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span> |
|
41 <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span> |
|
42 <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span> |
|
43 </fieldset> |
|
44 </form> |
|
45 |
|
46 <div id="srcout"> |
|
47 <style> |
|
48 #doc3 .classopts { display:none; } |
|
49 </style> |
|
50 <div class="highlight" ><pre><span class="c">/**</span> |
|
51 <span class="c"> * Provides a basic Overlay widget, with Standard Module content support. The Overlay widget</span> |
|
52 <span class="c"> * provides Page XY positioning support, alignment and centering support along with basic </span> |
|
53 <span class="c"> * stackable support (z-index and shimming).</span> |
|
54 <span class="c"> *</span> |
|
55 <span class="c"> * @module overlay</span> |
|
56 <span class="c"> */</span> |
|
57 |
|
58 <span class="c">/**</span> |
|
59 <span class="c"> * A basic Overlay Widget, which can be positioned based on Page XY co-ordinates and is stackable (z-index support).</span> |
|
60 <span class="c"> * It also provides alignment and centering support and uses a standard module format for it's content, with header,</span> |
|
61 <span class="c"> * body and footer section support.</span> |
|
62 <span class="c"> * </span> |
|
63 <span class="c"> * @class Overlay</span> |
|
64 <span class="c"> * @constructor</span> |
|
65 <span class="c"> * @extends Widget</span> |
|
66 <span class="c"> * @uses WidgetPosition</span> |
|
67 <span class="c"> * @uses WidgetStack</span> |
|
68 <span class="c"> * @uses WidgetPositionExt</span> |
|
69 <span class="c"> * @uses WidgetStdMod</span> |
|
70 <span class="c"> * @param {Object} object The user configuration for the instance.</span> |
|
71 <span class="c"> */</span> |
|
72 <span class="nx">Y</span><span class="o">.</span><span class="nx">Overlay</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">.</span><span class="nx">build</span><span class="o">(</span><span class="s2">"overlay"</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Widget</span><span class="o">,</span> <span class="o">[</span><span class="nx">Y</span><span class="o">.</span><span class="nx">WidgetPosition</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">WidgetStack</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">WidgetPositionExt</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">WidgetStdMod</span><span class="o">]);</span> |
|
73 </pre></div> |
|
74 </div> |
|
75 </div> |
|
76 </div> |
|
77 <div class="yui-b"> |
|
78 <div class="nav"> |
|
79 |
|
80 <div id="moduleList" class="module"> |
|
81 <h4>Modules</h4> |
|
82 <ul class="content"> |
|
83 <li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
84 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
85 <li class=""><a href="module_base.html" title="base">base</a></li> |
|
86 <li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
87 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
88 <li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
89 <li class=""><a href="module_console.html" title="console">console</a></li> |
|
90 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
91 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
92 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
93 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
94 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
95 <li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
96 <li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
97 <li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
98 <li class=""><a href="module_event.html" title="event">event</a></li> |
|
99 <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
100 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
101 <li class=""><a href="module_history.html" title="history">history</a></li> |
|
102 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
103 <li class=""><a href="module_io.html" title="io">io</a></li> |
|
104 <li class=""><a href="module_json.html" title="json">json</a></li> |
|
105 <li class=""><a href="module_node.html" title="node">node</a></li> |
|
106 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
107 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
108 <li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
109 <li class="selected"><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
110 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
111 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
112 <li class=""><a href="module_queue.html" title="queue">queue</a></li> |
|
113 <li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
114 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
115 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
116 <li class=""><a href="module_test.html" title="test">test</a></li> |
|
117 <li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
118 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
119 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
120 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
121 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
122 <li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
123 </ul> |
|
124 </div> |
|
125 |
|
126 <div id="classList" class="module"> |
|
127 <h4>Classes</h4> |
|
128 <ul class="content"> |
|
129 <li class=""><a href="Overlay.html" title="Overlay">Overlay</a></li> |
|
130 </ul> |
|
131 </div> |
|
132 |
|
133 <div id="fileList" class="module"> |
|
134 <h4>Files</h4> |
|
135 <ul class="content"> |
|
136 <li class="selected"><a href="Overlay.js.html" title="Overlay.js">Overlay.js</a></li> |
|
137 </ul> |
|
138 </div> |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 |
|
144 </div> |
|
145 </div> |
|
146 </div> |
|
147 <div id="ft"> |
|
148 <hr /> |
|
149 Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
150 </div> |
|
151 </div> |
|
152 <script type="text/javascript"> |
|
153 ALL_YUI_PROPS = []; |
|
154 </script> |
|
155 </body> |
|
156 </html> |