Opened 15 years ago

Closed 15 years ago

#1372 closed enhancement (wontfix)

FilteringTable: allow custom formatters

Reported by: [email protected] Owned by: Tom Trenka
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4
Keywords: filtering table html content Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

The html content in cells may be anchors or/and images and data may have a server side special format and sometimes are not displayed at all. e.g.

    <table dojoType="FilteringTable" >
            <th dataType="String">Name</th>
            <th dataType="Date">Date</th>
            <th dataType="Number">Value</th></tr></thead>       
            <tr value="1"><td data="Adam"><img src="img/adam.png"/></td>
                <td data="11/1/2003"><a href="LinkForADate?date=11/1/2003">Nov 1th 2003</a></td>
                <td data="12"><a href="linkForAValue?value=12"><img src="img/lowValue.png"/></a></td></tr>

Sort and filter are applied to data and cells are then rendered with the provided inner html content. This feature would allow special format for date ( using locale ) and for numbers, letting the complexity on the server side and then keeping lightweight the rendering engine.

Change History (6)

comment:1 Changed 15 years ago by dylan

Version: 0.20.3

comment:2 Changed 15 years ago by Tom Trenka

Version: 0.30.4

comment:3 Changed 15 years ago by Tom Trenka

Summary: Enable html content in filtering table cellsFilteringTable: allow custom formatters

To clarify for my own uses, what the submitter is asking for is a way to format the data point that is a little more extensive that the current methodology; right now format is limited to date formatting, and was going to get numeric formatting. The poster is asking that a function be also passable, to let the user control/create any custom formatting desired.

comment:4 Changed 15 years ago by Adam Peller

Description: modified (diff)

comment:5 Changed 15 years ago by bill

Component: WidgetsDijit

The new Table widget will allow custom formatting of each column.

comment:6 Changed 15 years ago by Tom Trenka

Resolution: wontfix
Status: newclosed

FilteringTable? is not being ported to either Dijit or DojoX, so I'm closing the bug.

Note: See TracTickets for help on using tickets.