A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/grid_adjust_config/ below:

JavaScript Grid - adjust Config

Optional. Defines whether the width of columns is automatically adjusted to the width of their content

const grid = new dhx.Grid("grid_container", {
columns: [

],
adjust: true,
data: dataset
});

Related sample: Grid. Adjust columns by header, data, all

The property can be specified to one of the available adjustment modes:

"header" adjusts the columns to the width of their header "footer" adjusts the columns to the width of their footer "data" adjusts the columns to the width of their content true combines the above mentioned modes and adjusts the column to the bigger value

The adjust property has a priority over the autoWidth property if it is specified either for a grid or for its column, and over the width property of the column.

The width the columns will be adjusted to also depends on the values of the minWidth/maxWidth properties if they are set for a column.

Note that:

Related API: adjustColumnWidth()

Related article: Autosize for columns


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4