well,in pure html i used pattern attribute for input field, but now i don't have any input field. what should i do? can you give me a reference in mui doc?
const columns = [
{
field: "first_name",
headerName: "First Name",
width: 180,
editable: true,
},
{
field: "last_name",
headerName: "last Name",
width: 180,
align: "left",
headerAlign: "left",
editable: true,
},
{
field: "phone",
headerName: "phone",
width: 180,
editable: true,
// pattern: "[0-9]{3}-[0-9]{3}-[0-9]{4}",
},
];

The GridColDef interface allows for passing a custom renderEditCell parameter, so you can pass any parameter you want to the udnerlying component
However it's a little more complicated than that, because the new value has to be passed to the API.