Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally set a cutoff message. #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aduane
Copy link

@aduane aduane commented Jan 3, 2014

Displaying a lot of dates together and using the cutoff setting produces a very inconsistent look. (Some are words, some are dates) This will allow you to benefit from the cutoff feature, but have everything in words.

If you set the cutoffMessage setting to a string, that string will
be displayed before the text version of your cutoff date.
e.g.: {cutoffMessage: "over", cutoff: 7_24_60_60_1000} will produce
"over 7 days ago".

If you set the cutoffMessage setting to a string, that string will
be displayed before the text version of your cutoff date.
e.g.: {cutoffMessage: "over", cutoff: 7*24*60*60*1000} will produce
"over 7 days ago".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant