Changeset 1330
- Timestamp:
- 03/16/08 11:09:35 (7 months ago)
- Files:
-
- mochikit/trunk/doc/html/MochiKit/Visual.html (modified) (21 diffs)
- mochikit/trunk/doc/rst/MochiKit/Visual.rst (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/trunk/doc/html/MochiKit/Visual.html
r1329 r1330 176 176 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 177 177 <dt>effect:</dt> 178 <dd>One of the visual pairs to use. Choose between 'slide', 'blind', 179 'appear', and 'size'.</dd> 178 <dd><p class="first">One of the visual pairs to use:</p> 179 <table border="1" class="last docutils"> 180 <colgroup> 181 <col width="21%" /> 182 <col width="79%" /> 183 </colgroup> 184 <tbody valign="top"> 185 <tr><td><tt class="docutils literal"><span class="pre">"appear"</span></tt></td> 186 <td><a class="mochiref reference" href="#fn-appear">appear</a> and <a class="mochiref reference" href="#fn-fade">fade</a></td> 187 </tr> 188 <tr><td><tt class="docutils literal"><span class="pre">"blind"</span></tt></td> 189 <td><a class="mochiref reference" href="#fn-blindup">blindUp</a> and <a class="mochiref reference" href="#fn-blinddown">blindDown</a></td> 190 </tr> 191 <tr><td><tt class="docutils literal"><span class="pre">"size"</span></tt></td> 192 <td><a class="mochiref reference" href="#fn-grow">grow</a> and <a class="mochiref reference" href="#fn-shrink">shrink</a></td> 193 </tr> 194 <tr><td><tt class="docutils literal"><span class="pre">"slide"</span></tt></td> 195 <td><a class="mochiref reference" href="#fn-slideup">slideUp</a> and <a class="mochiref reference" href="#fn-slidedown">slideDown</a></td> 196 </tr> 197 </tbody> 198 </table> 199 </dd> 180 200 <dt>options:</dt> 181 201 <dd>The optional effect options (see effect functions for details).</dd> … … 242 262 <p> 243 263 <a name="fn-fade"></a> 244 <a class="mochidef reference" href="#fn-fade">fade(element [, options])</a>:</p> 245 <blockquote> 246 <p>Change the opacity of an element until making it disappear.</p> 247 <p>options:</p> 248 <table border="1" class="docutils"> 264 <a class="mochidef reference" href="#fn-fade">fade(element[, options])</a>:</p> 265 <blockquote> 266 <p>Fades an <tt class="docutils literal"><span class="pre">element</span></tt> using the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. Once 267 the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with 268 <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element 269 opacity will be restored. The available <tt class="docutils literal"><span class="pre">options</span></tt> are identical 270 to the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect.</p> 271 <dl class="docutils"> 272 <dt>element:</dt> 273 <dd>An element ID string or a DOM node (see 274 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 275 <dt>options:</dt> 276 <dd><table border="1" class="first last docutils"> 249 277 <colgroup> 250 278 <col width="12%" /> … … 260 288 </tbody> 261 289 </table> 262 < dl class="docutils">290 </dd> 263 291 <dt><em>Availability</em>:</dt> 264 292 <dd>Available in MochiKit 1.4+</dd> … … 269 297 <a class="mochidef reference" href="#fn-appear">appear(element [, options])</a>:</p> 270 298 <blockquote> 271 <p>Slowly show an invisible element.</p> 272 <p>options:</p> 273 <table border="1" class="docutils"> 274 <colgroup> 275 <col width="36%" /> 276 <col width="64%" /> 299 <p>Slowly shows an <tt class="docutils literal"><span class="pre">element</span></tt> using the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. 300 If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">"display:</span> <span class="pre">none"</span></tt> style it will be changed 301 to <tt class="docutils literal"><span class="pre">"display:</span> <span class="pre">block"</span></tt> with <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>. 302 The available options are identical to the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect.</p> 303 <dl class="docutils"> 304 <dt>element:</dt> 305 <dd>An element ID string or a DOM node (see 306 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 307 <dt>options:</dt> 308 <dd><table border="1" class="first last docutils"> 309 <colgroup> 310 <col width="10%" /> 311 <col width="90%" /> 277 312 </colgroup> 278 313 <tbody valign="top"> 279 314 <tr><td>from</td> 280 <td><tt class="docutils literal"><span class="pre"> 0.0</span></tt></td>315 <td><tt class="docutils literal"><span class="pre">element.opacity</span> <span class="pre">||</span> <span class="pre">0.0</span></tt></td> 281 316 </tr> 282 317 <tr><td>to</td> … … 285 320 </tbody> 286 321 </table> 287 < dl class="docutils">322 </dd> 288 323 <dt><em>Availability</em>:</dt> 289 324 <dd>Available in MochiKit 1.4+</dd> … … 294 329 <a class="mochidef reference" href="#fn-puff">puff(element [, options])</a>:</p> 295 330 <blockquote> 296 <p>Make an element double size, and then make it disappear.</p> 297 <dl class="docutils"> 331 <p>Make an element double size, and then make it disappear using the 332 <a class="mochiref reference" href="#fn-scale">Scale</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects. Once the effect 333 has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with 334 <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element 335 size, position and opacity will be restored. Only a few options 336 from <a class="mochiref reference" href="#fn-scale">Scale</a> are supported along with the 337 <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p> 338 <dl class="docutils"> 339 <dt>element:</dt> 340 <dd>An element ID string or a DOM node (see 341 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 342 <dt>options:</dt> 343 <dd><table border="1" class="first last docutils"> 344 <colgroup> 345 <col width="57%" /> 346 <col width="43%" /> 347 </colgroup> 348 <tbody valign="top"> 349 <tr><td>scaleContent</td> 350 <td><tt class="docutils literal"><span class="pre">true</span></tt></td> 351 </tr> 352 <tr><td>scaleFromCenter</td> 353 <td><tt class="docutils literal"><span class="pre">true</span></tt></td> 354 </tr> 355 </tbody> 356 </table> 357 </dd> 298 358 <dt><em>Availability</em>:</dt> 299 359 <dd>Available in MochiKit 1.4+</dd> … … 306 366 <p>Blind an element up, changing its vertical size to 0.</p> 307 367 <dl class="docutils"> 368 <dt>element:</dt> 369 <dd>An element ID string or a DOM node (see 370 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 308 371 <dt><em>Availability</em>:</dt> 309 372 <dd>Available in MochiKit 1.4+</dd> … … 316 379 <p>Blind an element down, restoring its vertical size.</p> 317 380 <dl class="docutils"> 381 <dt>element:</dt> 382 <dd>An element ID string or a DOM node (see 383 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 318 384 <dt><em>Availability</em>:</dt> 319 385 <dd>Available in MochiKit 1.4+</dd> … … 326 392 <p>A switch-off like effect, making the element disappear.</p> 327 393 <dl class="docutils"> 394 <dt>element:</dt> 395 <dd>An element ID string or a DOM node (see 396 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 328 397 <dt><em>Availability</em>:</dt> 329 398 <dd>Available in MochiKit 1.4+</dd> … … 335 404 <blockquote> 336 405 <p>Make the element fall and fade.</p> 337 <p>options:</p> 338 <table border="1" class="docutils"> 406 <dl class="docutils"> 407 <dt>element:</dt> 408 <dd>An element ID string or a DOM node (see 409 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 410 <dt>options:</dt> 411 <dd><table border="1" class="first last docutils"> 339 412 <colgroup> 340 413 <col width="53%" /> … … 347 420 </tbody> 348 421 </table> 349 < dl class="docutils">422 </dd> 350 423 <dt><em>Availability</em>:</dt> 351 424 <dd>Available in MochiKit 1.4+</dd> … … 358 431 <p>Shake an element from left to right.</p> 359 432 <dl class="docutils"> 433 <dt>element:</dt> 434 <dd>An element ID string or a DOM node (see 435 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 360 436 <dt><em>Availability</em>:</dt> 361 437 <dd>Available in MochiKit 1.4+</dd> … … 368 444 <p>Slide an element down.</p> 369 445 <dl class="docutils"> 446 <dt>element:</dt> 447 <dd>An element ID string or a DOM node (see 448 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 370 449 <dt><em>Availability</em>:</dt> 371 450 <dd>Available in MochiKit 1.4+</dd> … … 378 457 <p>Slide an element up.</p> 379 458 <dl class="docutils"> 459 <dt>element:</dt> 460 <dd>An element ID string or a DOM node (see 461 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 380 462 <dt><em>Availability</em>:</dt> 381 463 <dd>Available in MochiKit 1.4+</dd> … … 389 471 the top left corner.</p> 390 472 <dl class="docutils"> 473 <dt>element:</dt> 474 <dd>An element ID string or a DOM node (see 475 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 391 476 <dt><em>Availability</em>:</dt> 392 477 <dd>Available in MochiKit 1.4+</dd> … … 399 484 <p>Restore the size of an element.</p> 400 485 <dl class="docutils"> 486 <dt>element:</dt> 487 <dd>An element ID string or a DOM node (see 488 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 401 489 <dt><em>Availability</em>:</dt> 402 490 <dd>Available in MochiKit 1.4+</dd> … … 409 497 <p>Shrink an element to its center.</p> 410 498 <dl class="docutils"> 499 <dt>element:</dt> 500 <dd>An element ID string or a DOM node (see 501 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 411 502 <dt><em>Availability</em>:</dt> 412 503 <dd>Available in MochiKit 1.4+</dd> … … 418 509 <blockquote> 419 510 <p>Switch an element between appear and fade.</p> 420 <p>options:</p> 421 <table border="1" class="docutils"> 511 <dl class="docutils"> 512 <dt>element:</dt> 513 <dd>An element ID string or a DOM node (see 514 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 515 <dt>options:</dt> 516 <dd><table border="1" class="first last docutils"> 422 517 <colgroup> 423 518 <col width="43%" /> … … 430 525 </tbody> 431 526 </table> 527 </dd> 528 </dl> 432 529 <p>pulses controls the number of pulses made during the effect.</p> 433 530 <dl class="docutils"> … … 442 539 <p>Reduce first the vertical size, and then the horizontal size.</p> 443 540 <dl class="docutils"> 541 <dt>element:</dt> 542 <dd>An element ID string or a DOM node (see 543 <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> 444 544 <dt><em>Availability</em>:</dt> 445 545 <dd>Available in MochiKit 1.4+</dd> … … 529 629 <a class="mochidef reference" href="#fn-parallel">Parallel(effects [, options])</a>:</p> 530 630 <blockquote> 531 <p>Launch effects in parallel.</p> 532 <dl class="docutils"> 631 <p>Launch a list of <tt class="docutils literal"><span class="pre">effects</span></tt> in parallel.</p> 632 <dl class="docutils"> 633 <dt>effects:</dt> 634 <dd>An array of instantiated effect objects. Note that they must 635 all have <tt class="docutils literal"><span class="pre">sync</span></tt> set to <tt class="docutils literal"><span class="pre">true</span></tt>.</dd> 636 <dt>options:</dt> 637 <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd> 533 638 <dt><em>Availability</em>:</dt> 534 639 <dd>Available in MochiKit 1.4+</dd> mochikit/trunk/doc/rst/MochiKit/Visual.rst
r1329 r1330 154 154 155 155 effect: 156 One of the visual pairs to use. Choose between 'slide', 'blind', 157 'appear', and 'size'. 156 One of the visual pairs to use: 157 158 ============ ========================================= 159 ``"appear"`` :mochiref:`appear` and :mochiref:`fade` 160 ``"blind"`` :mochiref:`blindUp` and :mochiref:`blindDown` 161 ``"size"`` :mochiref:`grow` and :mochiref:`shrink` 162 ``"slide"`` :mochiref:`slideUp` and :mochiref:`slideDown` 163 ============ ========================================= 158 164 159 165 options: … … 211 217 ------------------- 212 218 213 :mochidef:`fade(element [, options])`: 214 215 Change the opacity of an element until making it disappear. 216 217 options: 218 219 ====== ============================================= 220 from ``element.opacity || 1.0`` 221 to ``0.0`` 222 ====== ============================================= 219 :mochidef:`fade(element[, options])`: 220 221 Fades an ``element`` using the :mochiref:`Opacity` effect. Once 222 the effect has completed, the ``element`` will be hidden with 223 :mochiref:`MochiKit.Style.hideElement` and the original element 224 opacity will be restored. The available ``options`` are identical 225 to the :mochiref:`Opacity` effect. 226 227 element: 228 An element ID string or a DOM node (see 229 :mochiref:`MochiKit.DOM.getElement`). 230 231 options: 232 ====== ============================================= 233 from ``element.opacity || 1.0`` 234 to ``0.0`` 235 ====== ============================================= 223 236 224 237 *Availability*: … … 228 241 :mochidef:`appear(element [, options])`: 229 242 230 Slowly show an invisible element. 231 232 options: 233 234 ===== ========= 235 from ``0.0`` 236 to ``1.0`` 237 ===== ========= 243 Slowly shows an ``element`` using the :mochiref:`Opacity` effect. 244 If the ``element`` has ``"display: none"`` style it will be changed 245 to ``"display: block"`` with :mochiref:`MochiKit.Style.showElement`. 246 The available options are identical to the :mochiref:`Opacity` effect. 247 248 element: 249 An element ID string or a DOM node (see 250 :mochiref:`MochiKit.DOM.getElement`). 251 252 options: 253 ===== ============================================= 254 from ``element.opacity || 0.0`` 255 to ``1.0`` 256 ===== ============================================= 238 257 239 258 *Availability*: … … 243 262 :mochidef:`puff(element [, options])`: 244 263 245 Make an element double size, and then make it disappear. 264 Make an element double size, and then make it disappear using the 265 :mochiref:`Scale` and :mochiref:`Opacity` effects. Once the effect 266 has completed, the ``element`` will be hidden with 267 :mochiref:`MochiKit.Style.hideElement` and the original element 268 size, position and opacity will be restored. Only a few options 269 from :mochiref:`Scale` are supported along with the 270 :mochiref:`DefaultOptions`. 271 272 element: 273 An element ID string or a DOM node (see 274 :mochiref:`MochiKit.DOM.getElement`). 275 276 options: 277 ================ ============ 278 scaleContent ``true`` 279 scaleFromCenter ``true`` 280 ================ ============ 246 281 247 282 *Availability*: … … 253 288 Blind an element up, changing its vertical size to 0. 254 289 290 element: 291 An element ID string or a DOM node (see 292 :mochiref:`MochiKit.DOM.getElement`). 293 255 294 *Availability*: 256 295 Available in MochiKit 1.4+ … … 261 300 Blind an element down, restoring its vertical size. 262 301 302 element: 303 An element ID string or a DOM node (see 304 :mochiref:`MochiKit.DOM.getElement`). 305 263 306 *Availability*: 264 307 Available in MochiKit 1.4+ … … 269 312 A switch-off like effect, making the element disappear. 270 313 314 element: 315 An element ID string or a DOM node (see 316 :mochiref:`MochiKit.DOM.getElement`). 317 271 318 *Availability*: 272 319 Available in MochiKit 1.4+ … … 277 324 Make the element fall and fade. 278 325 279 options: 280 281 ======== ======= 282 distance ``100`` 283 ======== ======= 326 element: 327 An element ID string or a DOM node (see 328 :mochiref:`MochiKit.DOM.getElement`). 329 330 options: 331 ======== ======= 332 distance ``100`` 333 ======== ======= 284 334 285 335 *Availability*: … … 291 341 Shake an element from left to right. 292 342 343 element: 344 An element ID string or a DOM node (see 345 :mochiref:`MochiKit.DOM.getElement`). 346 293 347 *Availability*: 294 348 Available in MochiKit 1.4+ … … 299 353 Slide an element down. 300 354 355 element: 356 An element ID string or a DOM node (see 357 :mochiref:`MochiKit.DOM.getElement`). 358 301 359 *Availability*: 302 360 Available in MochiKit 1.4+ … … 306 364 307 365 Slide an element up. 366 367 element: 368 An element ID string or a DOM node (see 369 :mochiref:`MochiKit.DOM.getElement`). 308 370 309 371 *Availability*: … … 316 378 the top left corner. 317 379 380 element: 381 An element ID string or a DOM node (see 382 :mochiref:`MochiKit.DOM.getElement`). 383 318 384 *Availability*: 319 385 Available in MochiKit 1.4+ … … 324 390 Restore the size of an element. 325 391 392 element: 393 An element ID string or a DOM node (see 394 :mochiref:`MochiKit.DOM.getElement`). 395 326 396 *Availability*: 327 397 Available in MochiKit 1.4+ … … 332 402 Shrink an element to its center. 333 403 404 element: 405 An element ID string or a DOM node (see 406 :mochiref:`MochiKit.DOM.getElement`). 407 334 408 *Availability*: 335 409 Available in MochiKit 1.4+ … … 340 414 Switch an element between appear and fade. 341 415 342 options: 343 344 ====== ======== 345 pulses ``null`` 346 ====== ======== 416 element: 417 An element ID string or a DOM node (see 418 :mochiref:`MochiKit.DOM.getElement`). 419 420 options: 421 ====== ======== 422 pulses ``null`` 423 ====== ======== 347 424 348 425 pulses controls the number of pulses made during the effect. … … 355 432 356 433 Reduce first the vertical size, and then the horizontal size. 434 435 element: 436 An element ID string or a DOM node (see 437 :mochiref:`MochiKit.DOM.getElement`). 357 438 358 439 *Availability*: … … 418 499 :mochidef:`Parallel(effects [, options])`: 419 500 420 Launch effects in parallel. 501 Launch a list of ``effects`` in parallel. 502 503 effects: 504 An array of instantiated effect objects. Note that they must 505 all have ``sync`` set to ``true``. 506 507 options: 508 See :mochiref:`DefaultOptions`. 421 509 422 510 *Availability*:
