Свойство | Тип | Описание | |
---|---|---|---|
$columnNames | array | All column names of the grid. |
Свойство | Тип | Описание | |
---|---|---|---|
$allowActions | boolean | Allow actions. | |
$allowBatchDeletion | boolean | Allow batch allow. | |
$builded | boolean | Mark if the grid is builded. | |
$builder | Closure | Grid builder. | |
$columns | Collection of all grid columns. | ||
$exporter | |||
$filter | The grid Filter. | ||
$keyName | string | Default primary key name. | |
$model | The grid data model instance. | ||
$resourcePath | Resource path of the grid. | ||
$rows | Collection of all data rows. | ||
$rowsCallback | Closure | Rows callable fucntion. | |
$variables | array | All variables in grid view. |
Метод | Описание | |
---|---|---|
__call ( $method, $arguments ) | Dynamically add columns to the grid view. | |
__construct ( |
Create a new grid instance. | |
__toString ( ) : string | Get the string contents of the grid view. | |
allowActions ( ) : boolean | If allow actions. | |
allowBatchDeletion ( ) : boolean | If allow batch delete. | |
blank ( $label ) | ||
build ( ) : void | Build the grid. | |
column ( string $name, string $label = '' ) : |
Add column to Grid. | |
columns ( array $columns = [] ) : |
Batch add column to grid. | |
disableActions ( ) | Disable all actions. | |
disableBatchDeletion ( ) | Disable batch deletion. | |
filter ( Closure $callback ) | Set the grid filter. | |
model ( ) : |
Get Grid model. | |
paginate ( integer $perPage = null ) : void | Paginate the grid. | |
paginator ( ) : mixed | Get the grid paginator. | |
pathOfCreate ( ) | ||
render ( ) : string | Get the string contents of the grid view. | |
renderFilter ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | Render the grid filter. | |
resource ( string $path = null ) : string | Get current resource uri. | |
rows ( Closure $callable = null ) : |
Set grid row callback function. | |
with ( array $variables = [] ) | Add variables to grid view. |
Метод | Описание | |
---|---|---|
addColumn ( string $column = '', string $label = '' ) : |
Add column to grid. | |
buildRows ( array $data ) : void | Build the grid rows. | |
setupExporter ( ) : void | Setup grid exporter. | |
setupFilter ( ) : void | Setup grid filter. | |
variables ( ) : array | Get all variables will used in grid view. |
public __call ( $method, $arguments ) | ||
$method | ||
$arguments |
public __construct ( |
||
$model | ||
$builder | Closure |
public __toString ( ) : string | ||
Результат | string |
public allowActions ( ) : boolean | ||
Результат | boolean |
public allowBatchDeletion ( ) : boolean | ||
Результат | boolean |
public renderFilter ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
Результат | Illuminate\Contracts\View\Factory | Illuminate\View\View |
protected setupExporter ( ) : void | ||
Результат | void |
protected bool $allowBatchDeletion | ||
Результат | boolean |
public array $columnNames | ||
Результат | array |
protected Collection,Illuminate\Support $columns | ||
Результат |
protected Exporter,Encore\Admin\Grid $exporter | ||
Результат |
protected Filter,Encore\Admin\Grid $filter | ||
Результат |
protected Model,Encore\Admin\Grid $model | ||
Результат |
protected Collection,Illuminate\Support $rows | ||
Результат |
protected Closure $rowsCallback | ||
Результат | Closure |
protected array $variables | ||
Результат | array |