dandelion / dandelion-datatables

Dandelion component for DataTables
http://dandelion.github.io/components/datatables/
Other
110 stars 49 forks source link

Provide some utilities on top of the HtmlTableBuilder #243

Closed tduchateau closed 9 years ago

tduchateau commented 10 years ago

When the export file should accurately reflect the front side, a kind of utility could be great to build a HtmlTable very quicky.

This kind of syntax could be useful:

.column().fillWithProperty(columnDef.getName()).title(columnDef.getValue())

And a wrapper too. For example:

HtmlTable table = new HtmlTableBuilder<Town>()
    .newBuilder("tableId", towns, request)
    .auto()
    .build();

Requirement: #242

See http://dandelion-forum.48353.x6.nabble.com/Is-that-possible-to-get-table-header-text-value-by-using-dt-property-tp1345p1348.html