Method | Description | |
---|---|---|
__construct ( OpenSkill\Datatable\Providers\Provider $provider, |
Will create a new datatable composer instance with the given provider | |
add ( OpenSkill\Datatable\Columns\ColumnConfiguration $configuration ) | This method will add the given ColumnConfiguration to the composer. | |
build ( ) : |
||
column ( string $name, string | callable $callable = null, |
Will create a new ColumnConfiguration with all defaults but allows overriding of all properties through the method. | |
getColumnConfiguration ( ) : OpenSkill\Datatable\Columns\ColumnConfiguration[] | Will return the internal column configurations that are registered with the current composer. | |
getProvider ( ) : OpenSkill\Datatable\Providers\Provider | Will return the Provider for the underlying data. |
Method | Description | |
---|---|---|
setCallableColumn ( $config, $callable ) | Determine a sane configuration value for a column's callable function |
public __construct ( OpenSkill\Datatable\Providers\Provider $provider, |
||
$provider | OpenSkill\Datatable\Providers\Provider | the provider that will process the underlying data |
$versionEngine | The version engine to handle the request data | |
$viewFactory | Illuminate\Contracts\View\Factory | The factory providing the views |
$configRepository | Illuminate\Contracts\Config\Repository | The repository providing the user defined options |
public add ( OpenSkill\Datatable\Columns\ColumnConfiguration $configuration ) | ||
$configuration | OpenSkill\Datatable\Columns\ColumnConfiguration | the configuration to add to the composer |
public build ( ) : |
||
return | Will return the fully built DatatableService that will contain the ColumnConfiguration |
public column ( string $name, string | callable $callable = null, |
||
$name | string | The name of the configuration, required for the configuration |
$callable | string | callable | The function to execute, defaults to null which means the default will be set. |
$searchable | If the column should be searchable or not | |
$orderable | OpenSkill\Datatable\Columns\Orderable\Orderable | If the column should be orderable or not |
public getColumnConfiguration ( ) : OpenSkill\Datatable\Columns\ColumnConfiguration[] | ||
return | OpenSkill\Datatable\Columns\ColumnConfiguration[] |
public getProvider ( ) : OpenSkill\Datatable\Providers\Provider | ||
return | OpenSkill\Datatable\Providers\Provider |