Метод |
Описание |
|
__construct ( string | null $tableView, string | null $scriptView, Illuminate\Contracts\View\Factory $viewFactory, Illuminate\Contracts\Config\Repository $configRepository, array $columnConfiguration = [] ) |
DatatableView constructor, will take a view as a string if a custom one should be used. will also take the
column configurations to provide out of the box headers for the view. |
|
callback ( string $name, string $callback ) |
|
|
columns ( string $columnName, string $label = null ) |
Will set the columns for the view |
|
endpoint ( $endpoint_url ) |
Sets the endpoint URL that will be passed to templates when rendering html & scripts. |
|
headers ( ) |
Indicates that the current columns should have a header on the table |
|
html ( ) : string |
Will render the table and directly the script after it. This is a shortcut for
{@link #table} followed by {@link script} |
|
id ( string $tableId ) |
Will set a new id on the table. |
|
option ( string $name, mixed $options ) |
|
|
script ( ) : string |
Will render the javascript for the table |
|
table ( ) : string |
Will render the table |
|