Project

General

Profile

Project Timeline extjs3 » History » Version 5

Anonymous, 15/09/2015 14:48

1 1 Anonymous
h1. Project Timeline extjs3
2 1 Anonymous
3 2 Anonymous
This is a project module developed in extjs 3 for showing project events in a timeline with the functionality of access data.
4 1 Anonymous
5 2 Anonymous
!https://idoc-projets.ias.u-psud.fr/redmine/attachments/download/119/Screenshot%20from%202015-09-15%2014_15_30.png!
6 1 Anonymous
7 1 Anonymous
How to:
8 2 Anonymous
* Get the code from here: source:git_sitools_idoc|solar/project_moduls_sitools2/Module_ProjectTimeline_sitools2@master
9 2 Anonymous
* Put *all files downloaded* in _yourPathTo/workspace/client-user/js/modules/projectTimeline_
10 2 Anonymous
* Create a new project module with xtype "sitools.user.modules.projectTimeline" and set Dependencies with all the *.js and *.css files downloaded
11 2 Anonymous
* All events data are stored in the .json file, you can modify it to create events for your project. 
12 1 Anonymous
13 5 Anonymous
> Json example:
14 5 Anonymous
> <pre><code class="json">
15 5 Anonymous
{
16 5 Anonymous
"timeline": 
17 5 Anonymous
{
18 5 Anonymous
"daynum": 40585.0, 
19 5 Anonymous
"date": "2011/02/11", 
20 5 Anonymous
"day": "Friday", 
21 5 Anonymous
"daycount": "J+241",
22 5 Anonymous
"starttime": "00:00:00", //event start time
23 5 Anonymous
"endtime": "15:00:00", //event end time
24 5 Anonymous
"text": "SODISM M1 offset X and Y Calibration Lambda: 607nm", //event name 
25 5 Anonymous
"data": 1.0 //this event has some data to show, it will show a small icon for click
26 5 Anonymous
}, 
27 5 Anonymous
{
28 5 Anonymous
"daynum": 40585.0, 
29 5 Anonymous
"date": "2011/02/11", 
30 5 Anonymous
"day": "Friday", 
31 5 Anonymous
"daycount": "J+241", 
32 5 Anonymous
"starttime": "16:00:00", 
33 5 Anonymous
"endtime": "24:00:00", 
34 5 Anonymous
"text": "SODISM M1 offset X and Y calibration Lambda: 782nm", 
35 5 Anonymous
"data": 0.0 //this event has no data
36 5 Anonymous
}
37 5 Anonymous
}
38 3 Anonymous
</code></pre>
39 3 Anonymous
  
40 1 Anonymous
Here is the link to the code repository:
41 1 Anonymous
42 2 Anonymous
source:git_sitools_idoc|solar/project_moduls_sitools2/Module_ProjectTimeline_sitools2@master