public function scripts($script = null, array $attributes = ['type' => 'text/javascript']) { $script = $script ?: $this->generateScripts(); return '<script' . $this->html->attributes($attributes) . '>' . $script . '</script>' . PHP_EOL; }
/** * Возвращет javascript-код инициализации таблицы. * * @return string */ public function script() { $this->buildIfNotBuilt(); return $this->html->scripts(); }