MUI




Fix the warning 'The value provided to Autocomplete is invalid' for MUI Autocomplete

Material UI

For the development of a Ract component I used MUI Autocomplete. I got the array of objects from SharePoint list and used this data as a parameter for options. Actually, you can use any source.
But I had a lot of warnings in console.

MUI: The value provided to Autocomplete is invalid.
None of the options match with {"Id":0,"Title":"","ProjectDescription":"","AvailableObjects":[]}.
You can use the isOptionEqualToValue prop to customize the equality test.

(read more...)

The implementation of the buttons with Horisontal Scroll action for Material UI DataGrid

Material UI

If you use a Pro version of Material UI, then you have a tool, how to switch the cells in the DataGrid table. But if you work with a wide table and you just want to make it more comfortable to work with it, there are some tricks for that. The first thing is to 'freeze' the header, so user can collate the column and headers. All the Excel users like this function. And the second thing is to allow user scroll the page if he has a small resolution and he doesn't have touch screen.

(read more...)

MarkiMarta.com. Notes of web-specialist
Since 2009
18+