class Append in Forena Reports 7.4
Same name and namespace in other branches
- 8 src/FrxPlugin/AjaxCommand/Append.php \Drupal\forena\FrxPlugin\AjaxCommand\Append
Append command
Plugin annotation
@FrxAjaxCommand(
id = "append"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase implements AjaxCommandInterface
- class \Drupal\forena\FrxPlugin\AjaxCommand\Append
Expanded class hierarchy of Append
1 string reference to 'Append'
File
- AjaxCommand/
Append.php, line 18
Namespace
Drupal\forena\FrxPlugin\AjaxCommandView source
class Append extends AjaxCommandBase {
/**
* JQuery Append Command
*
* Settings:
* - selector: JQuery selector to use for append.
* - text: HTML to use to replace
*
* @param array $settings
* Settings for command
* @return \Drupal\Core\Ajax\AppendCommand
*/
public function commandFromSettings(array $settings) {
$text = $this
->getSetting($settings, 'text');
$selector = $this
->getSetting($settings, 'selector');
return ajax_command_append($selector, $text);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected | property | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | AjaxCommandBase constructor. | |
Append:: |
public | function |
JQuery Append Command Overrides AjaxCommandInterface:: |