psDefaultColumnWidth - cWebBaseContainer

Sets the default width value for each column that is not assigned via psColumnWidths

Type: Property (Web Property)

Access: Read/Write

Data Type: String

Parameters: None

Syntax
 { WebProperty=Client }
 Property String psDefaultColumnWidth

Web Property Read Access: WebGet psDefaultColumnWidth to StringVariable
Web Property Write Access: WebSet psDefaultColumnWidth to StringVariable/Value

Read Access: Get psDefaultColumnWidth to StringVariable
Write Access: Set psDefaultColumnWidth to StringVariable/Value


Description

Sets the default width value for each column that is not assigned via psColumnWidths.

Default is "1fr", which mimics the behavior of the Flow Layout; causing each row to be the same width.


Format

Several types of values can be used:

Exact Pixel Values

Simply enter the desired number (e.g. "30px").

Percentages

(e.g.: "1/20%"). Makes the column a percentage of the total available width.

Fractions

(e.g: "1/1fr", "4/3fr"). Makes the column a fraction of the total available remaining width. For example: In a grid with exactly 4 columns that are each 1 fraction (1fr), each column will claim 1/4th of the total available width. If a 5th column is added that is exactly 20 pixels wide, then the other 4 columns will claim 1/4th of the total height that remains after subtracting the 20 pixels.

Advanced Clauses

like minmax, max-content, etc. refer to the CSS Grid documentation for more information (CSS Grid Layout). Note that CSS Grid is 1-based, but the DataFlex Grid Layout implementation is 0-based.


About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.