ember-table icon indicating copy to clipboard operation
ember-table copied to clipboard

Static non sortable rows (Summary row)

Open teejayhh opened this issue 6 years ago • 4 comments

I have a table which has quite a few columns with summerizable data. So I am wondering if it is possible to add a row which has a different format from the others ->

Header

First Name Last name Stuff done
Totals 100
Tony Stark 60
Bruce Banner 40

The totals row should be taken out of the sorting pool so that when you sort by a column the row will stay where it is, at the top.

Is something like that possible?

So far we have rolled our own tables but we would like to embrace new stuff.

Best regards Thomas

teejayhh avatar Mar 29 '19 07:03 teejayhh

You could implement a footer. https://opensource.addepar.com/ember-table/latest/docs/api/components/ember-tfoot

wuarmin avatar Mar 29 '19 07:03 wuarmin

Let me try that real quick.

teejayhh avatar Mar 29 '19 07:03 teejayhh

That is certainly an option. Thanks for the tip

teejayhh avatar Mar 31 '19 23:03 teejayhh

@teejayhh Did using a footer work for the use case you describe here?

bantic avatar Jul 16 '19 18:07 bantic