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

Custom timeline labels using a transformation method #3

Closed
nipunasudha opened this issue May 28, 2020 · 3 comments
Closed

Custom timeline labels using a transformation method #3

nipunasudha opened this issue May 28, 2020 · 3 comments

Comments

@nipunasudha
Copy link

I have a requirement to display dates like 12/04/2020 instead of the current label format displayed from 0 to 14w5d. So to generalize this, can you give an option to provide a transformation method?

Here is an usage example for the concept:

TimelineEditor(
  timelineTextTransformer: (Duration duration){
    // I can return a custom string based on the duration value
    return startDate.add(duration).toString();
  }
);
@neckaros
Copy link
Owner

I had it in my back log. I will add it very soon!

@neckaros
Copy link
Owner

@neckaros
Copy link
Owner

You can provide your own widget for greater flexibility. I you have text you should specify overflow to avoid tall timeline bar like in the example

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

No branches or pull requests

2 participants