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/gridcolumn_properties/gridcolumn_adjust_property/ below:

Website Navigation


JavaScript Grid column - adjust Config

Optional. Defines whether the width of a column is automatically adjusted to its content

Example​
const grid = new dhx.Grid("grid_container", { 
columns: [
{ id: "country", header: [{ text: "Country" }], adjust: "header" },
// more columns configuration objects
],
adjust: false,
// more options
});

note

Note that if you change the font type, size, or offsets, the correct calculation of the adjust property of a cell may not be guaranteed.

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