JSGantt API

JSGantt  1.2.22

JSGantt API > jsgantt > JSGantt.
Search:
 
Filters

Class JSGantt.

Methods

AddXMLTask

void AddXMLTask ( pGanttVar )
Add a task based on parsed XML doc
Parameters:
pGanttVar <Gantt> - Gantt object
Returns: void

benchMark

void benchMark ( pItem )
Used for benchmarking performace
Parameters:
pItem <TaskItem> - TaskItem object
Returns: void

changeFormat

void changeFormat ( pFormat , ganttObj )
Change display format of current gantt chart
Parameters:
pFormat <String> - Current format (minute,hour,day...)
ganttObj <GanttChart> - The gantt object
Returns: void

ChromeLoadXML

void ChromeLoadXML ( ThisFile , pGanttVar )
Load an XML document in Chrome
Parameters:
ThisFile <String> - URL to XML file
pGanttVar <Gantt> - Gantt object
Returns: void

ChromeXMLParse

void ChromeXMLParse ( pGanttVar )
Parse XML document in Chrome
Parameters:
pGanttVar <Gantt> - Gantt object
Returns: void

findObj

Object findObj ( theObj , theDoc )
Returns an object from the current DOM
Parameters:
theObj <String> - Object name
theDoc <Document> - current document (DOM)
Returns: Object

folder

void folder ( pID , ganttObj )
Open/Close and hide/show children of specified task
Parameters:
pID <Number> - Task ID
ganttObj <GanttChart> - The gantt object
Returns: void

formatDateStr

String formatDateStr ( pDate , pFormatStr )
Display a formatted date based on gantt date format setting as defined in JSGantt.GanttChart.setDateDisplayFormat()
Parameters:
pDate <Date> - A javascript date object
pFormatStr <String> - The date format (mm/dd/yyyy,dd/mm/yyyy,yyyy-mm-dd...)
Returns: String

getMaxDate

Datetime getMaxDate ( pList , pFormat )
Used to determine the minimum date of all tasks and set lower bound based on format
Parameters:
pList <Array> - Array of TaskItem Objects
pFormat <String> - current format (minute,hour,day...)
Returns: Datetime

getMinDate

Datetime getMinDate ( pList , pFormat )
Determine the minimum date of all tasks and set lower bound based on format
Parameters:
pList <Array> - Array of TaskItem Objects
pFormat <String> - current format (minute,hour,day...)
Returns: Datetime

hide

void hide ( pID , ganttObj )
Hide children of a task
Parameters:
pID <Number> - Task ID
ganttObj <GanttChart> - The gantt object
Returns: void

isIE

void isIE ( )
Checks whether browser is IE
Returns: void

parseDateStr

Datetime parseDateStr ( pDateStr , pFormatStr )
Parse dates based on gantt date format setting as defined in JSGantt.GanttChart.setDateInputFormat()
Parameters:
pDateStr <String> - A string that contains the date (i.e. "01/01/09")
pFormatStr <String> - The date format (mm/dd/yyyy,dd/mm/yyyy,yyyy-mm-dd)
Returns: Datetime

parseXML

void parseXML ( ThisFile , pGanttVar )
Parse an external XML file containing task items.
Parameters:
ThisFile <String> - URL to XML file
pGanttVar <Gantt> - Gantt object
Returns: void

processRows

processRows ( pList , pID , pRow , pLevel , pOpen )
Recursively process task tree ... set min, max dates of parent tasks and identfy task level.
Parameters:
pList <Array> - Array of TaskItem Objects
pID <Number> - task ID
pRow <Number> - Row in chart
pLevel <Number> - Current tree level
pOpen <Boolean>

show

void show ( pID , ganttObj )
Show children of a task
Parameters:
pID <Number> - Task ID
ganttObj <GanttChart> - The gantt object
Returns: void

taskLink

void taskLink ( pRef , pWidth , pHeight )
Handles click events on task name, currently opens a new window
Parameters:
pRef <String> - URL for window
pWidth <Number> - Width of window
pHeight <Number> - Height of window
Returns: void


Copyright © 2009 Yahoo! Inc. All rights reserved.