Class AdminPageFramework_FieldType_radio
A set of radio buttons that lets the user pick an option.
This class defines the radio field type.
Common Field Definition Arguments
For common field definition arguments, seeAdminPageFramework_Factory_Controller::addSettingField()
.
Example
array( 'field_id' => 'radio', 'title' => __( 'Radio Button', 'admin-page-framework-loader' ), 'type' => 'radio', 'label' => array( 'a' => 'Apple', 'b' => 'Banana ( this option is disabled. )', 'c' => 'Cherry' ), 'default' => 'c', // yields Cherry; its key is specified. 'after_label' => '<br />', 'attributes' => array( 'b' => array( 'disabled' => 'disabled', ), ), )
Package: AdminPageFramework\Common\Form\FieldType
Since: 2.1.5
Since: 3.3.1 Changed to extend
Image: http://admin-page-framework.michaeluno.jp/image/common/form/field_type/radio.png
Located at factory/_common/form/field_type/radio/AdminPageFramework_FieldType_radio.php
Since: 2.1.5
Since: 3.3.1 Changed to extend
AdminPageFramework_FieldType
from
AdminPageFramework_FieldType_Base
.Image: http://admin-page-framework.michaeluno.jp/image/common/form/field_type/radio.png
Located at factory/_common/form/field_type/radio/AdminPageFramework_FieldType_radio.php
Methods summary
protected
array
|
#
getEnqueuingScripts( )
|
Magic methods summary
Properties summary
public
array
|
$aFieldTypeSlugs |
#
Defines the field type slugs used for this field type. |
protected
array
|
$aDefaultKeys |
#
Defines the default key-values of this field type. |