-
Notifications
You must be signed in to change notification settings - Fork 781
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
Assign className to clicked row on expand #1370
Comments
HI @CoralSilver, you can use |
Thanks Allen. Yes I am already using this.options.expandRowBgColor, but I wanted to be able to add a className to the row that it is expanding from so it is more visually obvious that they are connected. |
sorry for lately reply, so you means add the class on original row instead of expanded one? |
Yes exactly. And then remove it once the row is closed again. |
@CoralSilver, got it, I'll try to support it as soon as possible. |
Thanks! |
@CoralSilver, this feature was supported on |
Thanks Allen. Works perfectly! |
@AllenFang Thanks for your response, The class is added on the tr after expanding is there a way we could add the class when the table is rendered and stays whether it expands or not please? |
@AllenFang Thanks for your response As In the picture the expand component will be attached as tr in the main table and hidden next to the expandable row, i would like to add the class on it even when it is not expanded The examples which you provided would add class to the tr on the expand component table which is inside the tr hidden in the main table(when not in expand state) thanks |
You means you want to add a class on the expand row( |
@AllenFang Thanks I have tried that but that adds class only on expand but i want it to add it even when its hidden please |
@supiash1, I'll handle it. Because I force to add class on on expanding, in next version |
@AllenFang Thank you |
Is there a way to add a custom background color or className to a row when a user clicks to expand it, in the same way that you can with the select row option? I just want the row to expand, and not be selectable.
The text was updated successfully, but these errors were encountered: