input type=radio, radio button group
inputRadio
Radio buttons like these:
The labels ('yes', 'no', 'maybe') for the buttons are automatically equipped with the <label> tag, that's why you may also click on the labels and not just the controls themselves.
- Live examples:
- Definition:
<?php $config = Array( 'numberofchildren' => Array( 'type' => 'inputRadio', 'displayname' => 'This is a static radio button collection', 'values' => Array( 0 => 'zero', 1 => 'one', 2 => 'two' ), 'html' => 'CLASS="inputfieldstyle"', 'value' => '0', 'layout' => '%s', 'itemlayout' => '%radio% %label%' ) ); ?> - Possible validators:
- 'required'
- 'custom'
