Project

General

Profile

Project Timeline extjs3 » History » Version 3

Anonymous, 15/09/2015 14:41

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 3 Anonymous
Json example:
14 3 Anonymous
<pre><code class="json">
15 3 Anonymous
  {
16 3 Anonymous
    "timeline": 
17 3 Anonymous
    {
18 3 Anonymous
      "daynum": 40585.0, 
19 3 Anonymous
      "date": "2011/02/11", 
20 3 Anonymous
      "day": "Friday", 
21 3 Anonymous
      "daycount": "J+241",
22 3 Anonymous
      "starttime": "00:00:00", //event start time
23 3 Anonymous
      "endtime": "15:00:00", //event end time
24 3 Anonymous
      "text": "SODISM M1 offset X and Y Calibration Lambda: 607nm", //event name 
25 3 Anonymous
      "data": 1.0 //this event has some data to show, it will show a small icon for click
26 3 Anonymous
    }, 
27 3 Anonymous
    {
28 3 Anonymous
      "daynum": 40585.0, 
29 3 Anonymous
      "date": "2011/02/11", 
30 3 Anonymous
      "day": "Friday", 
31 3 Anonymous
      "daycount": "J+241", 
32 3 Anonymous
      "starttime": "16:00:00", 
33 3 Anonymous
      "endtime": "24:00:00", 
34 3 Anonymous
      "text": "SODISM M1 offset X and Y calibration Lambda: 782nm", 
35 3 Anonymous
      "data": 0.0 // this event has no data
36 3 Anonymous
    }
37 3 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