The Resize API interface that is available in the grid apiRef.

interface GridColumnResizeApi {
    autosizeColumns: ((options?: GridAutosizeOptions) => Promise<void>);
}

Hierarchy (view full)

Properties

Properties

autosizeColumns: ((options?: GridAutosizeOptions) => Promise<void>)

Auto-size the columns of the grid based on the cells' content and the space available.

Type declaration

    • (options?): Promise<void>
    • Parameters

      Returns Promise<void>

      A promise that resolves when autosizing is completed