Report an issue
Class

CKEDITOR.dialog.definition.radio

class inherited

The definition of a radio group.

This class is not really part of the API. It just illustrates the properties that developers can use to define and create groups of radio buttons.

Once the dialog is opened, the created element becomes a CKEDITOR.ui.dialog.radio object and can be accessed with CKEDITOR.dialog.getContentElement.

For a complete example of dialog definition, please check CKEDITOR.dialog.add.

// There is no constructor for this class, the user just has to define an
// object with the appropriate properties.

// Example:
{
    type: 'radio',
    id: 'country',
    label: 'Which country is bigger',
    items: [ [ 'France', 'FR' ], [ 'Germany', 'DE' ] ],
    style: 'color: green',
    'default': 'DE',
    onClick: function() {
        // this = CKEDITOR.ui.dialog.radio
        alert( 'Current value: ' + this.getValue() );
    }
}

Filtering