Skip to content

Updated docs and status regarding headerRenderer #1710

Closed
@Luis-Palacios

Description

@Luis-Palacios

Which version of React JS are you using?

✅ Officially supported ✅

  • v15.4.x

☣️ Not officially supported, expect warnings and errors ☣️

  • v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • Chrome

I'm submitting a ...

  • 🐛 Bug Report
  • 💡 Feature Request

Issue Details

  • Current behavior
    If I pass a custom headerRenderer and Sortable as true I get the following error:

    Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
    

    If I pass the headerRenderer and Sortable as false I get no error and it works correctly.

  • Desired behavior

  1. If I pass headerRendered and Sortable true it should work?
  2. Update docs to indicate how to use a headerRenderer
  3. Update docs to indicate if possible to use a headerRender with sortable true
  4. Update docs to include an example of using a Custom headerRenderer
  5. Provide a way to pass specific styles or CSS class to each column header?

I'm willing to help if needed with a PR for docs or even code, but I would like to know first the current status of this as is not clear on the current docs. I have provided an example repo that test with the latest react version and the officially supported v15.4.x

I created an example repo that demonstrates the issue here: Example repo and I can see more details about the error there:

image

If you change sortable to false it should correctly

I also created a branch that uses the officially supported react version(15.4.x) and the error there is on the console:

Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in

And btw thanks for this awesome grid it has really helped us deliver great value to our clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions