|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | return [ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Default Carbon Formats |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | The default formats that are used for TimeColumn & DateColumn. |
| 9 | + | You can use the formatting characters from the PHP DateTime class. |
| 10 | + | More info: https://www.php.net/manual/en/datetime.format.php |
| 11 | + | |
| 12 | + */ |
| 13 | + |
4 | 14 | 'default_time_format' => 'H:i', |
5 | 15 | 'default_date_format' => 'd/m/Y', |
6 | | - 'suppress_search_highlights' => false, // When searching, don't highlight matching search results when set to true |
| 16 | + |
| 17 | + /* |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | Surpress Search Highlights |
| 20 | + |-------------------------------------------------------------------------- |
| 21 | + | When enabled, matching text won't be highlighted in the search results |
| 22 | + | while searching. |
| 23 | + | |
| 24 | + */ |
| 25 | + |
| 26 | + 'suppress_search_highlights' => false, |
| 27 | + |
| 28 | + /* |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | Per Page Options |
| 31 | + |-------------------------------------------------------------------------- |
| 32 | + | Sets the options to choose from in the `Per Page`dropdown. |
| 33 | + | |
| 34 | + */ |
| 35 | + |
7 | 36 | 'per_page_options' => [10, 25, 50, 100], |
| 37 | + |
| 38 | + /* |
| 39 | + |-------------------------------------------------------------------------- |
| 40 | + | Default Per Page |
| 41 | + |-------------------------------------------------------------------------- |
| 42 | + | Sets the default amount of rows to display per page. |
| 43 | + | |
| 44 | + */ |
| 45 | + |
8 | 46 | 'default_per_page' => 10, |
| 47 | + |
| 48 | + /* |
| 49 | + |-------------------------------------------------------------------------- |
| 50 | + | Model Namespace |
| 51 | + |-------------------------------------------------------------------------- |
| 52 | + | Sets the default namespace to be used when generating a new Datatables |
| 53 | + | component. |
| 54 | + | |
| 55 | + */ |
| 56 | + |
9 | 57 | 'model_namespace' => 'App', |
| 58 | + |
| 59 | + /* |
| 60 | + |-------------------------------------------------------------------------- |
| 61 | + | Default CSS classes |
| 62 | + |-------------------------------------------------------------------------- |
| 63 | + | |
| 64 | + | Sets the default classes that will be applied to each row and class |
| 65 | + | if the rowClasses() and cellClasses() functions are not overrided. |
| 66 | + | |
| 67 | + */ |
| 68 | + |
| 69 | + 'default_classes' => [ |
| 70 | + 'row' => [ |
| 71 | + 'even' => 'divide-x divide-gray-100 text-sm text-gray-900 bg-gray-100', |
| 72 | + 'odd' => 'divide-x divide-gray-100 text-sm text-gray-900 bg-gray-50', |
| 73 | + 'selected' => 'divide-x divide-gray-100 text-sm text-gray-900 bg-yellow-100', |
| 74 | + ], |
| 75 | + 'cell' => 'text-sm text-gray-900' |
| 76 | + ] |
10 | 77 | ]; |
0 commit comments