size

size
Type
integer
Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']
Scope
Display

Value for the width of the <input> field. To set the input field to the full width of the form area, use the value 50. Default is 30.

Changed in version 12.0

The TCA type none had two option keys for the same functionality: cols and size. In order to simplify the available configuration, cols has been dropped in favour of size.

Migration

Rename the option cols to size.

Before:

'columns' => [
    'aColumn' => [
        'config' => [
            'type' => 'none',
            'cols' => 20,
        ],
    ],
],
Copied!

After:

'columns' => [
    'aColumn' => [
        'config' => [
            'type' => 'none',
            'size' => 20,
        ],
    ],
],
Copied!