Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Frameworks] Custom headers with listeners #2777

Open
6 tasks
jsakalos opened this issue Apr 28, 2021 · 0 comments
Open
6 tasks

[Frameworks] Custom headers with listeners #2777

jsakalos opened this issue Apr 28, 2021 · 0 comments
Assignees
Labels
docs Improvements or additions to documentation example feature request forum Issues from forum

Comments

@jsakalos
Copy link

We do not currently support rendering of FW components in headers but there's a simple way how to do it, see the forum post.

  • add section to Angular guide template
  • add section to React guide template
  • add section to Vue guide template
  • add code to Angular advanced demo
  • add code to React advanced demo
  • add code to Vue advanced demo

Forum post

Hi,

So i was wondering if we can render custom react component in the header cell, the reason for this is we want to add bunch of buttons for the name cell, such as expand all, create new button like below:

The left most arrows controls expand and collapse all, and on the right we have the create and sort icons. There is a headerRender function that only accepts strings, i was only able to pass rendered react cells but cannot add event handler function, as i believe the functions are stripped during parsing in bryntum.

Is there any way to render react components like we can do in the column renderer function for cells?

@jsakalos jsakalos added feature request example docs Improvements or additions to documentation forum Issues from forum labels Apr 28, 2021
@jsakalos jsakalos self-assigned this Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation example feature request forum Issues from forum
Projects
None yet
Development

No branches or pull requests

1 participant