Nos\Renderer_Radioset¶Nos\Renderer.
Nos\Renderer_Radioset::$name¶Name for the radio input.
Nos\Renderer_Radioset::$choices¶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
Nos\Renderer_Radioset::$value¶Value of the selected input.
Nos\Renderer_Radioset::$class¶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',
),
);