@@ -20,21 +20,21 @@ class Builder
2020 use Macroable;
2121
2222 // Select plugin constants.
23- const SELECT_STYLE_API = 'api ' ;
23+ final const SELECT_STYLE_API = 'api ' ;
2424
25- const SELECT_STYLE_SINGLE = 'single ' ;
25+ final const SELECT_STYLE_SINGLE = 'single ' ;
2626
27- const SELECT_STYLE_MULTI = 'multi ' ;
27+ final const SELECT_STYLE_MULTI = 'multi ' ;
2828
29- const SELECT_STYLE_OS = 'os ' ;
29+ final const SELECT_STYLE_OS = 'os ' ;
3030
31- const SELECT_STYLE_MULTI_SHIFT = 'multi+shift ' ;
31+ final const SELECT_STYLE_MULTI_SHIFT = 'multi+shift ' ;
3232
33- const SELECT_ITEMS_ROW = 'row ' ;
33+ final const SELECT_ITEMS_ROW = 'row ' ;
3434
35- const SELECT_ITEMS_COLUMN = 'column ' ;
35+ final const SELECT_ITEMS_COLUMN = 'column ' ;
3636
37- const SELECT_ITEMS_CELL = 'cell ' ;
37+ final const SELECT_ITEMS_CELL = 'cell ' ;
3838
3939 /**
4040 * The default type to use for the DataTables javascript.
@@ -53,7 +53,10 @@ class Builder
5353
5454 protected string $ template = '' ;
5555
56- protected array $ attributes = [];
56+ protected array $ attributes = [
57+ 'serverSide ' => true ,
58+ 'processing ' => true ,
59+ ];
5760
5861 protected string |array $ ajax = '' ;
5962
@@ -66,10 +69,6 @@ public function __construct(public Repository $config, public Factory $view, pub
6669
6770 $ this ->collection = new Collection ;
6871 $ this ->tableAttributes = $ defaults ;
69- $ this ->attributes = [
70- 'serverSide ' => true ,
71- 'processing ' => true ,
72- ];
7372 }
7473
7574 /**
0 commit comments