Skip to content

ListView - Data structure for renderSectionHeader #955

Closed
@Ehesp

Description

@Ehesp

I'm currently struggling to understand how to get the section headers working. My data structure is like so:

[{
    title: 'Header One',
    data: []
}, {
    title: 'Header Two',
    data: []   
}]

Where data is an array of objects.

    renderSectionHeader(sectionData, sectionID) {
        console.log('Section ID:', sectionID);
        console.log('Section Data:', sectionData);

This just returns s1 and the whole data set. How do I specify/break-up this data?

I've tried looking at the examples, but I'm finding it hard to see what the structure is like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions