class SetDialogOptionCommand implements CommandInterface (View source)

Defines an AJAX command that sets jQuery UI dialog properties.

Properties

protected string $selector

A CSS selector string.

protected string $optionName

A jQuery UI dialog option name.

protected mixed $optionValue

A jQuery UI dialog option value.

Methods

__construct(string $selector, string $option_name, mixed $option_value)

Constructs a SetDialogOptionCommand object.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(string $selector, string $option_name, mixed $option_value)

Constructs a SetDialogOptionCommand object.

Parameters

string $selector

The selector of the dialog whose title will be set. If set to an empty value, the default modal dialog will be selected.

string $option_name

The name of the option to set. May be any jQuery UI dialog option. See http://api.jqueryui.com/dialog.

mixed $option_value

The value of the option to be passed to the dialog.

render()

Return an array to be run through json_encode and sent to the client.