iobts / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Add missing methods to OrgChart #253

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.0.1

Detailed description:

http://code.google.com/apis/visualization/documentation/gallery/orgchart.ht
ml

- collapse(row, collapsed)  none    Collapses or expands the node 
specified by the given row index. Collapsed when the collapsed parameter is 
true and expands the node when false is passed.
- getChildrenIndexes(row)   Array.<number>  Returns an array with the 
indexes of the children of the given node.
- getCollapsedNodes Array.<number>  Returns an array with the list of 
the collapsed node's indexes.

Workaround if you have one:

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/google-visualization-
api/browse_thread/thread/e1a8eec44fc04ad9?hl=en

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 25 Mar 2009 at 11:56

GoogleCodeExporter commented 9 years ago
also these properties:

allowCollapse   boolean false   Determines if double click will collapse a node.
allowHtml   boolean false    If set to true, names that includes HTML tags will 
be rendered as HTML.
color   string  '#edf7ff'   The background color of the orgchart elements.
selectionColor  string  '#d6e9f8'   The background color of selected orgchart 
elements.
size    string  'medium'    'small', 'medium' or 'large'

Original comment by galgwt.reviews@gmail.com on 25 Mar 2009 at 11:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The workaround is to use the setOption("allowCollapse", ...) method.

Original comment by galgwt.reviews@gmail.com on 30 Mar 2009 at 10:54

GoogleCodeExporter commented 9 years ago
This is a must.  The org chart has so much power, but you have to be a 
programer to take advantage of all the 
features.  How about making these part of the GUI that is displayed when you 
drop this on a site or into your 
spreadsheet?

Thanks!

Original comment by dan.mcda...@gmail.com on 19 Apr 2009 at 10:17

GoogleCodeExporter commented 9 years ago
Committed as r1353.  
Released in gwt-visualization-1.0.2

Original comment by galgwt.reviews@gmail.com on 18 May 2009 at 8:07

GoogleCodeExporter commented 9 years ago
When I try to use the getChildrenIndexes(int row) method, I get a runtime 
error. Any 
ideas?

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't 
support 
this property or method
 number: -2146827850
 description: Object doesn't support this property or method
    at 
com.google.gwt.visualization.client.visualizations.OrgChart.getChildrenIndexes(N
ative 
Method)

Original comment by craftycoder on 4 Sep 2009 at 5:36