class SetDialogTitleCommand extends SetDialogOptionCommand (View source)

Defines an AJAX command that sets jQuery UI dialog properties.

Properties

protected string $selector

A CSS selector string.

from  SetDialogOptionCommand
protected string $optionName

A jQuery UI dialog option name.

from  SetDialogOptionCommand
protected mixed $optionValue

A jQuery UI dialog option value.

from  SetDialogOptionCommand

Methods

__construct(string $selector, string $title)

Constructs a SetDialogTitleCommand object.

render()

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

Details

__construct(string $selector, string $title)

Constructs a SetDialogTitleCommand 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 $title

The title that will be set on the dialog.

render()

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