You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a field to bookmark rows and the filter to that column is a boolean type. So the filter displays the value true or false but instead I want it to display Marked or Unmarked. How can I do that?
I solved it by using type: "singleSelect" instead of type: "boolean". For "singleSelect" types, you can define which value options you want. And also you could set the filterOperators to only hold the "is" operator.
I have a field to bookmark rows and the filter to that column is a boolean type. So the filter displays the value true or false but instead I want it to display Marked or Unmarked. How can I do that?
const columns: GridColDef[] = [
{
field: "watchlist",
headerName: "Wishlist",
width: 120,
type: "boolean",
renderCell: (params) => (
<CustomCheckbox
rowId={params.id}
columnId={params.field}
checked={params.value}
onCheckboxClick={() =>
handleCheckboxClick(params.row.project_id, params.value)
}
/>
),
},
]
The text was updated successfully, but these errors were encountered: