Timemap.js v.2.0.1

Namespace TimeMap.filters

Defined in:
timemap.js

Namespace for different filter functions. Adding new filters to this namespace allows them to be specified by string name.

    TimeMap.init({
        options: {
            mapFilter: "hideFuture"
        },
        // etc...
    });

Static Methods

Method
TimeMap.filters.hideFuture(item)
Static filter function: Hide items later than the visible area of the timeline.
TimeMap.filters.hidePastFuture(item)
Static filter function: Hide items not in the visible area of the timeline.
TimeMap.filters.showMomentOnly(item)
Static filter function: Hide items not present at the exact center date of the timeline (will only work for duration events).
Namespace Detail
TimeMap.filters
Static Method Details
TimeMap.filters.hideFuture(item) :{Boolean}
Static filter function: Hide items later than the visible area of the timeline.
Parameters (optional)
item {TimeMapItem} Item to test for filter
Returns:
{Boolean} Whether to show the item
TimeMap.filters.hidePastFuture(item) :{Boolean}
Static filter function: Hide items not in the visible area of the timeline.
Parameters (optional)
item {TimeMapItem} Item to test for filter
Returns:
{Boolean} Whether to show the item
TimeMap.filters.showMomentOnly(item) :{Boolean}
Static filter function: Hide items not present at the exact center date of the timeline (will only work for duration events).
Parameters (optional)
item {TimeMapItem} Item to test for filter
Returns:
{Boolean} Whether to show the item
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:07 GMT-0700 (PDT)