From e47659398b24549fa28d3c1bc92c82877e16f7ee Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 10 Feb 2015 11:27:01 +0100 Subject: [PATCH] Updated docs --- docs/timeline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/timeline.html b/docs/timeline.html index 87102bb3..59eec23e 100644 --- a/docs/timeline.html +++ b/docs/timeline.html @@ -756,7 +756,7 @@ var options = { function When moving items on the Timeline, they will be snapped to nice dates like full hours or days, depending on the current scale. The snap function can be replaced with a custom function, or can be set to null to disable snapping. The signature of the snap function is:
function snap(date: Date, scale: string, step: number) : Date | number
- + The parameter scale can be can be 'millisecond', 'second', 'minute', 'hour', 'weekday, 'day, 'month, or 'year'. The parameter step is a number like 1, 2, 4, 5.