Changeset 1327
- Timestamp:
- 03/13/08 22:58:23 (4 months ago)
- Files:
-
- mochikit/trunk/doc/html/MochiKit/Visual.html (modified) (2 diffs)
- mochikit/trunk/doc/rst/MochiKit/Visual.rst (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/trunk/doc/html/MochiKit/Visual.html
r1326 r1327 54 54 style sheets. This implementation was adapted from <a class="reference" href="http://www.openrico.org">Rico</a>. Dynamic 55 55 effects are ported from <a class="reference" href="http://script.aculo.us">Scriptaculous</a>.</p> 56 <div class="section"> 57 <h2><a id="the-effects-queue" name="the-effects-queue">The Effects Queue</a></h2> 58 <p>When you create effects based on user input (mouse clicks for example), it can 59 create conflicts between the effects if multiple effects are running at the 60 same time. To manage this problem, the Queue mechanism has been introduced: 61 it's responsible for running the effects as you desired.</p> 62 <p>By default, you have one Queue called 'global', and the effects run in 'parallel' 63 (see default options). Every effects have a queue option to customize this. 64 It can be a string, the scope is then global:</p> 65 <ul class="simple"> 66 <li><cite>start</cite>: the effect will be run before any other;</li> 67 <li><cite>end</cite>: the effect will be run after any other;</li> 68 <li><cite>break</cite>: every other effects break when the the effect start;</li> 69 <li><cite>parallel</cite>: the effect run normally with others.</li> 70 </ul> 71 <p>But you have even more control if you use an array with the following keys:</p> 72 <ul class="simple"> 73 <li><cite>position</cite> takes a value listed above;</li> 74 <li><cite>scope</cite> manages how the information has to be taken. If it's <cite>global</cite> 75 then it's the same information for every effects. Otherwise you can define 76 your own scode. For example, if you add an effect on a specified element, 77 you may use the element id as scode;</li> 78 <li><cite>limit</cite> defines how many effects can run in the current scode. If an 79 effect is added whereas the limit is reached, it will never be run (it's 80 lost).</li> 81 </ul> 82 </div> 56 83 </div> 57 84 <div class="section"> … … 646 673 </blockquote> 647 674 </div> 648 <div class="section">649 <h2><a id="the-effects-queue" name="the-effects-queue">The Effects Queue</a></h2>650 <p>When you create effects based on user input (mouse clicks for example), it can651 create conflicts between the effects if multiple effects are running at the652 same time. To manage this problem, the Queue mechanism has been introduced:653 it's responsible for running the effects as you desired.</p>654 <p>By default, you have one Queue called 'global', and the effects run in 'parallel'655 (see default options). Every effects have a queue option to customize this.656 It can be a string, the scope is then global:</p>657 <ul class="simple">658 <li><cite>start</cite>: the effect will be run before any other;</li>659 <li><cite>end</cite>: the effect will be run after any other;</li>660 <li><cite>break</cite>: every other effects break when the the effect start;</li>661 <li><cite>parallel</cite>: the effect run normally with others.</li>662 </ul>663 <p>But you have even more control if you use an array with the following keys:</p>664 <ul class="simple">665 <li><cite>position</cite> takes a value listed above;</li>666 <li><cite>scope</cite> manages how the information has to be taken. If it's <cite>global</cite>667 then it's the same information for every effects. Otherwise you can define668 your own scode. For example, if you add an effect on a specified element,669 you may use the element id as scode;</li>670 <li><cite>limit</cite> defines how many effects can run in the current scode. If an671 effect is added whereas the limit is reached, it will never be run (it's672 lost).</li>673 </ul>674 </div>675 675 </div> 676 676 <div class="section"> mochikit/trunk/doc/rst/MochiKit/Visual.rst
r1326 r1327 49 49 50 50 .. _Scriptaculous: http://script.aculo.us 51 52 53 The Effects Queue 54 ----------------- 55 56 When you create effects based on user input (mouse clicks for example), it can 57 create conflicts between the effects if multiple effects are running at the 58 same time. To manage this problem, the Queue mechanism has been introduced: 59 it's responsible for running the effects as you desired. 60 61 By default, you have one Queue called 'global', and the effects run in 'parallel' 62 (see default options). Every effects have a queue option to customize this. 63 It can be a string, the scope is then global: 64 65 - `start`: the effect will be run before any other; 66 - `end`: the effect will be run after any other; 67 - `break`: every other effects break when the the effect start; 68 - `parallel`: the effect run normally with others. 69 70 71 But you have even more control if you use an array with the following keys: 72 73 - `position` takes a value listed above; 74 - `scope` manages how the information has to be taken. If it's `global` 75 then it's the same information for every effects. Otherwise you can define 76 your own scode. For example, if you add an effect on a specified element, 77 you may use the element id as scode; 78 - `limit` defines how many effects can run in the current scode. If an 79 effect is added whereas the limit is reached, it will never be run (it's 80 lost). 51 81 52 82 … … 489 519 490 520 491 The Effects Queue492 -----------------493 494 When you create effects based on user input (mouse clicks for example), it can495 create conflicts between the effects if multiple effects are running at the496 same time. To manage this problem, the Queue mechanism has been introduced:497 it's responsible for running the effects as you desired.498 499 By default, you have one Queue called 'global', and the effects run in 'parallel'500 (see default options). Every effects have a queue option to customize this.501 It can be a string, the scope is then global:502 503 - `start`: the effect will be run before any other;504 - `end`: the effect will be run after any other;505 - `break`: every other effects break when the the effect start;506 - `parallel`: the effect run normally with others.507 508 509 But you have even more control if you use an array with the following keys:510 511 - `position` takes a value listed above;512 - `scope` manages how the information has to be taken. If it's `global`513 then it's the same information for every effects. Otherwise you can define514 your own scode. For example, if you add an effect on a specified element,515 you may use the element id as scode;516 - `limit` defines how many effects can run in the current scode. If an517 effect is added whereas the limit is reached, it will never be run (it's518 lost).519 520 521 521 See Also 522 522 ========
