You are here

public function Append::commandFromSettings in Forena Reports 8

Same name and namespace in other branches
  1. 7.4 AjaxCommand/Append.php \Drupal\forena\FrxPlugin\AjaxCommand\Append::commandFromSettings()

JQuery Append Command

Settings:

  • selector: JQuery selector to use for append.
  • text: HTML to use to replace

Parameters

array $settings: Settings for command

Return value

\Drupal\Core\Ajax\AppendCommand

Overrides AjaxCommandInterface::commandFromSettings

File

src/FrxPlugin/AjaxCommand/Append.php, line 33

Class

Append
Append command

Namespace

Drupal\forena\FrxPlugin\AjaxCommand

Code

public function commandFromSettings(array $settings) {
  $text = $this
    ->getSetting($settings, 'text');
  $selector = $this
    ->getSetting($settings, 'selector');
  return new AppendCommand($selector, $text, $settings);
}