Skip to content

Commit dc35856

Browse files
committed
Add html builder config docs.
1 parent 71ff691 commit dc35856

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

documentation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
- [Installation](/docs/{{package}}/{{version}}/html-installation)
6666
- [Builder](/docs/{{package}}/{{version}}/html-builder)
6767
- [Table](/docs/{{package}}/{{version}}/html-builder-table)
68+
- [Config](/docs/{{package}}/{{version}}/html-builder-config)
6869
- [Columns](/docs/{{package}}/{{version}}/html-builder-column)
6970
- [Macro](/docs/{{package}}/{{version}}/html-builder-macro)
7071
- [Ajax](/docs/{{package}}/{{version}}/html-builder-ajax)

html-builder-config.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Html Builder Config
2+
3+
Default table attributes are now configurable.
4+
To begin, you need to publish the config by running `php artisan vendor:publish --tag=datatables-html`
5+
6+
Published config is located at `config/datatables-html.php`.
7+
You can then update the default table attributes that you prefer for every table rendered using the builder class.
8+
9+
```php
10+
return [
11+
'table' => [
12+
'class' => 'table',
13+
'id' => 'dataTableId'
14+
]
15+
];
16+
```

0 commit comments

Comments
 (0)