File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,16 @@ The `options` are passed (almost) verbatim to the DataTables clientside construc
200200options. Only options which are meaningful to be defined serverside can be set at this level, so
201201setting callbacks and events is not possible. These are however easily set on the Javascript end.
202202
203+ # # Table configuration
204+
205+ Configuring a specific table is done mainly via the methods on `DataTable`. The most common call
206+ is `add` to add an extra column to the table as seen in all the examples. More utility methods
207+ exist and can be chained.
208+
209+ ` ->addOrderBy($column, string $direction = DataTable::SORT_ASCENDING)`
210+ Will set the default sort of the table to the specified column and direction. Repeatable to sort
211+ by multiple columns.
212+
203213# Adapters
204214
205215Adapters are the core elements bridging DataTables functionality to their underlying data source.
You can’t perform that action at this time.
0 commit comments