1 | <?php |
||
9 | class Builder extends BaseBuilder |
||
10 | { |
||
11 | /** |
||
12 | * Table attributes. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $tableAttributes = [ |
||
17 | 'id' => 'dataTable', |
||
18 | 'class' => 'table table-bordered table-hover dt-responsive', |
||
19 | 'width' => '100%', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * Set table "id" attribute. |
||
24 | * |
||
25 | * @param string $id |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function setTableId($id) |
||
32 | |||
33 | /** |
||
34 | * Add classes to table "class" attribute. |
||
35 | * |
||
36 | * @param string ...$classes |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function addTableClass(...$classes) |
||
51 | |||
52 | /** |
||
53 | * Remove classes to table "class" attribute. |
||
54 | * |
||
55 | * @param string ...$classes |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function removeTableClass(...$classes) |
||
72 | |||
73 | /** |
||
74 | * Change table style to striped. |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function stripedTable() |
||
84 | |||
85 | /** |
||
86 | * Change table style to hovered. |
||
87 | * |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function hoveredTable() |
||
96 | } |
||
97 |