public function Css::commandFromSettings in Forena Reports 8
Same name and namespace in other branches
- 7.4 AjaxCommand/Css.php \Drupal\forena\FrxPlugin\AjaxCommand\Css::commandFromSettings()
CSS JQuery Command
Parameters
array $settings:
Return value
Overrides AjaxCommandInterface::commandFromSettings
File
- src/
FrxPlugin/ AjaxCommand/ Css.php, line 27
Class
- Css
- Class Css
Namespace
Drupal\forena\FrxPlugin\AjaxCommandCode
public function commandFromSettings(array $settings) {
$selector = $this
->getSetting($settings, 'selector');
$css = $this
->getJSONText($settings, 'css');
return new CssCommand($selector, $css);
}