# CKEDITOR.dialog.definition.button

class inherited

The definition of a button.

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

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

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

// Example:
{
type: 'button',
id: 'buttonId',
label: 'Click me',
title: 'My title',
onClick: function() {
// this = CKEDITOR.ui.dialog.button
alert( 'Clicked: ' + this.id );
}
}