X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/yajra/laravel-datatables-html/src/Html
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
yajra
/
laravel-datatables-html
/
src
/
Html
/
📁
..
📄
Builder.php
(6.77 KB)
📄
Button.php
(5.79 KB)
📄
Column.php
(12.71 KB)
📁
Columns
📁
Editor
📄
HasAuthorizations.php
(2.12 KB)
📄
HasEditor.php
(1.6 KB)
📄
HasOptions.php
(8.02 KB)
📄
HasTable.php
(4.51 KB)
📁
Options
📄
Parameters.php
(404 B)
Editing: HasEditor.php
<?php namespace Yajra\DataTables\Html; use Yajra\DataTables\Html\Editor\Editor; trait HasEditor { /** * Collection of Editors. * * @var null|Editor */ protected $editors = []; /** * Attach multiple editors to builder. * * @param array|mixed ...$editors * @return $this * @see https://editor.datatables.net/ * @throws \Exception */ public function editors(...$editors) { if (is_array($editors[0])) { $editors = $editors[0]; } foreach ($editors as $editor) { $this->editor($editor); } return $this; } /** * Integrate with DataTables Editor. * * @param array|Editor $fields * @return $this * @see https://editor.datatables.net/ * @throws \Exception */ public function editor($fields) { $this->setTemplate($this->config->get('datatables-html.editor', 'datatables::editor')); $editor = $this->newEditor($fields); $this->editors[] = $editor; return $this; } /** * @param array|Editor $fields * @return array|Editor * @throws \Exception */ protected function newEditor($fields) { if ($fields instanceof Editor) { $editor = $fields; } else { $editor = new Editor; $editor->fields($fields); } if (! $editor->table) { $editor->table($this->getTableAttribute('id')); } if (! $editor->ajax) { $editor->ajax($this->getAjaxUrl()); } return $editor; } }
Upload File
Create Folder