in partnership with mediatemple

Show
Ignore:
Timestamp:
05/05/08 10:36:32 (1 week ago)
Author:
JanK
Message:
  • Class events should now be used without their on prefix, i.e. addEvent('onChainComplete', fn) becomes addEvent('chainComplete'). If you want to add events in the options you need to prefix them with 'on' now ('foo' -> 'onFoo').

Note: This is not a breaking change.

- other minor optimizations and doc fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Docs/Plugins/Tips.md

    r1485 r1546  
    2626### Options: 
    2727 
    28 * showDelay     - (*number*: defaults to 100) The delay the onShow method is called. 
    29 * hideDelay     - (*number*: defaults to 100) The delay the onHide method is called. 
     28* showDelay     - (*number*: defaults to 100) The delay the show event is fired. 
     29* hideDelay     - (*number*: defaults to 100) The delay the hide hide is fired. 
    3030* className     - (*string*: defaults to null) the className your tooltip container will get. Useful for extreme styling. 
    3131 * The tooltip element inside the tooltip container above will have 'tip' as classname. 
     
    3838### Events: 
    3939  
    40  * onHide: fires when the tip is shown 
    41  * onShow: fires when the tip is being hidden 
     40 * hide: fires when the tip is shown 
     41 * show: fires when the tip is being hidden 
    4242 
    4343### Example: 
     
    5252         
    5353 
    54 Tips Event: onShow {#Tips:onShow} 
     54Tips Event: show {#Tips:show} 
    5555--------------------------------- 
    5656 
     
    6767### Example: 
    6868 
    69         myTips.addEvent('onShow', function(tip){ 
     69        myTips.addEvent('show', function(tip){ 
    7070                tip.fade('in'); 
    7171        }); 
    7272 
    73 Tips Event: onHide {#Tips:onHide} 
     73Tips Event: hide {#Tips:hide} 
    7474--------------------------------- 
    7575 
     
    8686### Example: 
    8787 
    88         myTips.addEvent('onHide', function(tip){ 
     88        myTips.addEvent('hide', function(tip){ 
    8989                tip.fade('out'); 
    9090        });