Answers for "pre selected data-grid material-ui"

0

pre selected data-grid material-ui

const apiRef = React.useRef<GridApi>(null);

...

<DataGrid
  components={{
    noRowsOverlay: (params) => {
      if (!apiRef.current) {
        apiRef.current = params.api.current;
      }
      return <div>No rows</div>;
    }
  }}
  {...}
/>
Posted by: Guest on December-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language