$encodeOffText public_oe property
whether the off text should be HTML-encoded.
$encodeOnText public_oe property
whether the on text should be HTML-encoded.
$offIcon public_oe property
the options for the optional off icon.
To specify an icon you can use the following parameters:
php
[
'name' => 'name of the icon', // required
'position' => 'position of the icon', // optional, 'left' or 'right', defaults to 'left'
'options' => 'the HTML attributes for the img', // optional
]
$offText public_oe property
the text displaying the unchecked status. This can be used in conjunction with the [[offIcon]].
$onIcon public_oe property
the options for the optional on icon.
To specify an icon you can use the following parameters:
php
[
'name' => 'name of the icon', // required
'position' => 'position of the icon', // optional, 'left' or 'right', defaults to 'left'
'options' => 'the HTML attributes for the img', // optional
]
$onText public_oe property
the text displaying the checked status. This can be used in conjunction with the [[onIcon]].
$uncheck public_oe property
the value associated with the uncheck state of the radio button.
If not set, it will take the default value '0'. This method will render a hidden input
so that if the radio button is not checked and is submitted, the value of this attribute
will still be submitted to the server via the hidden input. If you do not want any
hidden input, you should explicitly set this option as null.