-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
How to hide checkbox in Table component #1702
Comments
The
Hope that helps! |
@shaurya947 Thank you! |
@EcutDavid closing this. If that didn't work, or if you have any more questions about this, feel free to re-open and comment. |
@shaurya947 Thank you! Hope it goes to the document. |
Would these being hidden be a better default? Sorry to be that person that comments on a closed issue... |
@adrianblynch I think so, and I've noted this elsewhere in the past. Table may eventually get an overhaul, so that may be the time to address this. |
Disabling checkboxes (thanks @shaurya947!) is also required for accomplishing a more dense display with small row heights. This takes appearance outside of the Material UI mainstream looks, but could be an enabler for compact gauges and such. A fiddle here: https://jsfiddle.net/mobimation/jp3s4159/ |
displayRowCheckbox turns it off in the table body but leaves it in the header |
Kind of old but I needed figure this out as well, For future note, I found to turn off the header you can use |
Setting selectableRows: 'none' willl do |
* Add jest debug configuration * Move jest config to separate file * Change input mask generation logic * Use new geFormatHelperText date-io method to generate helper text and placeholder * Update @date-io/jalaali and @date-io/hijiri * [docs] Update component demo titles * Fix mask input issues and update e2e tests * Optimize new masked input for date range picker * Remove meaningless comment * Update component based tests * Use auto injecting dependencies for hooks * Remove maskChar prop * Again remove `date` from the useEffect dependency in usePickerState * Make keyboard input isFocused mutable ref instead of state * Introduce renderInput API * Update DatePickers to include renderApi * Update TimePicker and DateTimePicker usages * Fix component tests * Migrate DateRangePicker into new API * Add className prop that attaching to the root of picker view * Properly pass TextField props in demos * Fix cypress url port * Fix labels * Fix cypress DatePicke.spec.ts * Fix issues with spreading props overrides * Fix bugs found by DateRange cypress tests * Fix TextField variant types * Fix port for CI docs next start * [Calendar] Do not open year by clicking space right of arrow icon button * Refactor internal prop naming for CalendarHeader.tsx * Fix unexpected month switching on tabbing from the 1st day of month * Make impossible to focus disabled day/year via keyboard * Update tests to match new amount of real <Day /> rendered * Do not focus element and scrollIntoView if `allowedKeyboardControl=false` * Add cypress tests for year selection keyboard navigation * Add test for calendar keyboard navigation for disabled days
The table component is very good.
But some times, There is no need to use the checkbox, how to hide it?
I found there is no Table Props related with it.
Thanks!
The text was updated successfully, but these errors were encountered: