Radio Table
This widget renders a set of radio buttons horizontally, each with an image label rather than a text label. This is used for the image alignment settings in various places in Contao for example (left, right, top, bottom).
It is however possible to also use custom images and labels.
Options
This table only shows the options relevant to the core functionality of this widget. See the DCA reference for a full field reference.
| Key | Value | Description |
|---|---|---|
inputType | radioTable | |
options | array | An options array. When using your own images, the option values must be a path to the image relative to the public/ directory and without the .svg extension (only SVGs are supported). Otherwise the options are treated as icons from Contao’s own icon set. |
options_callback | function|callable | A callback function that returns the options callback or an array (use in combination with eval.multiple). You may define an anonymous function, but you should consider registering them via service tags. |
reference | array | Reference an array that will be used to translate the options. Contao will automatically match the options and reference array by key. |
eval.cols | integer | The number of radio buttons to display. |
Examples
The standard image alignment use case in Contao.
A custom radio table widget with custom icons.

