-
Notifications
You must be signed in to change notification settings - Fork 933
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
Support Fixed Columns? #236
Comments
Are you watching me? I better check for you in my closet. Hah, all jokes aside I literally just pushed up part one to this. So far it’s enabled for the header itself and I’ll add something for the individual columns. It’ll be an enum property something like fixed: (‘left’, ‘right’) |
That's a great news. Closing this issue as it is in progress now. Thanks. |
Was this implemented ? I didn't saw any reference |
Any update on this? |
Any update on fixing first column even with createMuiTheme ? |
I'm interested in this functionality too. Updates? |
As a workaround, you can manually set the proper import { TableCell } from "@material-ui/core";
const style = {
position: "sticky",
left: 0,
background: "white",
zIndex: 101
};
const columns = [
{
name: "Name",
options: {
customHeadRender: () => (
<TableCell key="name" style={{ ...style, top: 0, zIndex: 102 }}>
Name
</TableCell>
),
setCellProps: () => ({ style })
}
},
"Title",
"Location"
]; POC codesandbox for reference: https://codesandbox.io/s/rrr9zw4pwo |
Looks like that works for a single stickied column, but not multiple. +1 for stickied column functionality. |
|
I implemented this code to my project and it works well, but I want to give different background color for odd and even rows, how can I do that? |
Please Refer to #201 for striped rows. Also for the newer release, setting style is sufficient for fixing the columns.
|
Is there an example of more than one fixed column? |
Since I've set the width of each "sticky" column I can do this:
Note: this is using emotion/styled |
any news on this? |
Is there a support for fixed columns?
Fixed columns are useful when you have a very large horizontally spanning table and you want to have some columns on the left or the right fixed for easier viewing.
It would be awesome if there was a prop for columns like
fixed
, that takes in a string value of "left" or "right" or null. And have the specified columns be fixed on the left side or the right side.The text was updated successfully, but these errors were encountered: