From: <fg...@us...> - 2008-06-23 19:14:19
|
Revision: 854 http://openutils.svn.sourceforge.net/openutils/?rev=854&view=rev Author: fgiust Date: 2008-06-23 12:14:18 -0700 (Mon, 23 Jun 2008) Log Message: ----------- docs Modified Paths: -------------- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl trunk/openutils-mgnlcontrols/src/site/apt/grid.apt trunk/openutils-mgnlcontrols/src/site/resources/images/grid.png Added Paths: ----------- trunk/openutils-mgnlcontrols/src/site/resources/images/grid-config.png Modified: trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2008-06-23 18:47:40 UTC (rev 853) +++ trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2008-06-23 19:14:18 UTC (rev 854) @@ -47,7 +47,7 @@ checkColumns.push(new Ext.grid.CheckColumn({ header: '${colmap.header}', dataIndex: '${colmap_index}', - width: 55 + width: 40 })); [/#if] [/#list] Modified: trunk/openutils-mgnlcontrols/src/site/apt/grid.apt =================================================================== --- trunk/openutils-mgnlcontrols/src/site/apt/grid.apt 2008-06-23 18:47:40 UTC (rev 853) +++ trunk/openutils-mgnlcontrols/src/site/apt/grid.apt 2008-06-23 19:14:18 UTC (rev 854) @@ -25,17 +25,31 @@ This is a sample control configuration, you should find it pretty self-explanatory -+------------------------------------------------------+ - [*] footer - [*] columns - [*] col0 - header Text - [*] col1 - header Link +[images/grid-config.png] - controlType grid - label links - rows 8 +Supported editors (column types) -+------------------------------------------------------+ + The grid control supports the following editors (can be configured using the "type" property in each column): + + + * (no type): default, text field + + * checkbox: a checkbox field which saves a true/false value + + * link: a text fields with a button that can be used to insert an internal link + + +Hacking it + + The grid editor is actually implemented as a freemarker control, so it can easily be modified and improved. + The freemarker template is named dialogs/grid.ftl: you can copy it to your webapp (into the webapp classpath) in order + to modify it as needed. + + If you spend time in improving it (for example adding more editors) and you are interested in contributing your code + to the project, please let us know, we will be happy to accept your contribution! + + + + + Added: trunk/openutils-mgnlcontrols/src/site/resources/images/grid-config.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlcontrols/src/site/resources/images/grid-config.png ___________________________________________________________________ Name: svn:mime-type + image/png Modified: trunk/openutils-mgnlcontrols/src/site/resources/images/grid.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |