Skip to content

A Vaadin component for the vis.js Timeline visualization component.

License

Notifications You must be signed in to change notification settings

paolovalladolid/timeline-vaadin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timeline for Vaadin

A Vaadin component for the vis.js Timeline visualization component.

The timeline is easy to use and follows similar patterns to Vaadin's Calendar component.

// Create item groups (if using groups).
List<TimelineGroup> groups = new ArrayList<>();
// ...

// Create the item provider. A basic item provider can be used with a 
// static list of items or a more advanced provider could be implemented for 
// direct DB access of timeline events.
BasicItemProvider provider = new BasicItemProvider();

// Create the timeline.
Timeline t = new Timeline();
t.getOptions().setOrientation(TimelineOptions.TimeAxisOrientation.TOP);
t.getOptions().setType(TimelineOptions.ItemType.RANGEOVERFLOW);
t.setItemProvider(provider);
t.setGroups(groups);

// Add it to the UI.
layout.addComponent(t);

Not Implemented Yet

  • Events on item move, update, add, remove
  • Server side selection control
  • Client side rendering optimizations

About

A Vaadin component for the vis.js Timeline visualization component.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 56.7%
  • JavaScript 39.7%
  • Java 2.8%
  • Other 0.8%