glutengo / angular-mgl-timeline

Timeline component for Angular
MIT License
67 stars 33 forks source link

Add Angular Input for left/right direction #22

Closed Etiake closed 5 years ago

Etiake commented 5 years ago

Hi to all, I see that if [alternate] is set to false, all entries are shown to the left of the timeline. The only way to show them on the right is to force the mobile width (am I right?). It will be useful - in my opinion - to add something like [symmetry] property to mgl-timeline to configure the default direction when alternate is false. Let me know :)

glutengo commented 5 years ago

Hi, good suggestion! I included a new option called side in the new release (0.3.0). It can be set to either left (default) or right. Note: It is not taken into account when alternate is set to true.

You can check it out in the demo: https://angular-mgl-timeline.stackblitz.io/