Name for the radio input.
List of radio buttons. Key is the value and value is an array.
label: Text or image to display around the radio button side_label: Text on the side for the selected option
Value of the selected input.
Class for the container div.
Adding set of radio button in a CRUD form configuration:
<?php
return array(
'label' => __('Status:'),
'renderer' => '\Nos\Renderer_Radioset',
'renderer_options' => array(
'choices' => array(
'refused' => array(
'label' => '<img src="static/novius-os/admin/novius-os/img/icons/status-red.png" />',
'side_label' => __('Refused'),
),
'pending' => array(
'label' => '<img src="static/apps/noviusos_comments/img/status-orange.png" />',
'side_label' => __('Pending'),
),
'published' => array(
'label' => '<img src="static/novius-os/admin/novius-os/img/icons/status-green.png" />',
'side_label' => __('Published'),
),
),
'class' => 'flat',
),
);