◆ __get()
◆ addComponent()
Add a component to the data table. For example a "Paginator" or a "Sorter".
- Parameters
-
- Returns
- DataTable
- Exceptions
-
◆ classes()
| classes |
( |
string |
$classes | ) |
|
Add classes to the table.
- Parameters
-
- Returns
- $this
◆ columns()
| columns |
( |
array |
$columns | ) |
|
Displayed columns
- Parameters
-
- Returns
- $this
◆ componentExists()
| componentExists |
( |
string |
$componentName | ) |
|
Check whether a component exists for the given data table.
- Parameters
-
- Returns
- bool
◆ formatHeaders()
Add a formatter for the column headers.
- Parameters
-
| HeaderFormatter | $headerFormatter | |
- Returns
- DataTable
◆ getColumns()
◆ model()
| model |
( |
string |
$modelName, |
|
|
array |
$columns = [] |
|
) |
| |
Set the base model whose data is displayed in the table.
- Parameters
-
| string | $modelName | |
| array | $columns | |
- Returns
- $this
- Exceptions
-
◆ noDataHtml()
| noDataHtml |
( |
string |
$html | ) |
|
Set the HTML which should be displayed when the dataset is empty.
- Parameters
-
- Returns
- DataTable
◆ noDataView()
| noDataView |
( |
string |
$viewName | ) |
|
Set a view which should be displayed when the dataset is empty.
- Parameters
-
- Returns
- DataTable
- Exceptions
-
◆ query()
◆ render()
Renders the table.
- Returns
- string
- Exceptions
-
◆ with()
Add a relation to the table.
- Parameters
-
- Returns
- DataTable
The documentation for this class was generated from the following file:
- C:/Users/chrom/_PAGES/PackageDev/packages/hamburgscleanest/DataTables/src/Models/DataTable.php