Completed
Push — master ( 65fa37...c7bb09 )
by Song
02:44
created

CanFixHeader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A fixHeader() 0 21 1
1
<?php
2
3
namespace Encore\Admin\Grid\Concerns;
4
5
use Encore\Admin\Admin;
6
7
trait CanFixHeader
8
{
9
    public function fixHeader()
10
    {
11
        Admin::style(<<<STYLE
12
.wrapper, .grid-box .box-body {
13
    overflow: visible;
14
}
15
16
.grid-table {
17
    position: relative;
18
    border-collapse: separate;
19
}
20
21
.grid-table thead tr:first-child th {
22
    background: white;
23
    position: sticky;
24
    top: 0;
25
    z-index: 1;
26
}
27
STYLE
28
        );
29
    }
30
}
31