[Chameleon-dev] [Bug 672] New: [Chameleon-Widget] Table widget
generalization enhancement
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Wed Sep 15 15:43:01 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=672
Summary: [Chameleon-Widget] Table widget generalization
enhancement
Product: Chameleon
Version: 1.99
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: pspencer at dmsolutions.ca
The current implementation of the templating system in the Table widget requires
that the developer know the structure of the data that they wish to display,
specifically they need to know the names of the columns.
A more generic approach would be useful in certain situations that arise when
the column names are not known in advance.
In this case, we could use a templating system that allows us to reference a
template from within a template. For instance:
<template name="header"><![CDATA[
<table>
<tr>
%COLHEADERTEMPLATE%
</tr>
]]></template>
<template name="colheadertemplate"><![CDATA[
<td>%COLNAME%</td>
]]></template>
<template name="body"><![CDATA[
<tr>
%COLBODYTEMPLATE%
</tr>
]]></template>
<template name="colbodytemplate"><![CDATA[
<td>%COLDATA%</td>
]]></template>
The special variables %COLNAME% and %COLDATA% can be used to reference the
current column name (currently this only works in the body) and the current
column data value (in the body only, for each row).
In the code that parses the template for %<var>%, we can test to see if <var> is
the name of a template and process that template for every column of data.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list