tochoromero / aurelia-table

Simple functional data table for Aurelia
https://tochoromero.github.com/aurelia-table
MIT License
67 stars 25 forks source link

Table grouping #54

Open MECLab-Michelle opened 6 years ago

MECLab-Michelle commented 6 years ago

Hi,

I'm using aurelia table for a current project to display clinical notes. I have a column with the date and time that the note was written notesdate

and the following code for the table.

`

        <tbody>
          <tr repeat.for="clinicalNotes of $displayClinicalNotesData" 
              aut-select="row.bind: clinicalNotes; mode: single;">
            <td>${clinicalNotes.patientEncounterDateTime | dateFormat:'DD/MM/YYYY HH:mm:ss'}</td>
            <td class="pg-nowrap">${clinicalNotes.staffCode + ' - ' + clinicalNotes.staffFullName}</td>
            <td>${clinicalNotes.note}</td>
            <td class="pg-nowrap">${clinicalNotes.sourceSystemModule + ' - ' + clinicalNotes.sourceSystemCode}</td>
          </tr>
        </tbody>
      </table>`

I'm wanting to group the notes by the date so that the date isn't repeated. What's the best approach to doing this with aurelia table please?

Cheers,

tochoromero commented 6 years ago

I'm not sure what you want to do, do you want to display all the notes from the same date together? Could you please provide an example of what you would like to achieve?

MECLab-Michelle commented 6 years ago

Thanks for that. Ideally, I'd like something as follows:

noteexample

Note Date Staff Name Note Source