@@ -36,33 +36,33 @@ class UsersGrid extends Grid implements UsersGridInterface
36
36
protected $ linkableRows = false ;
37
37
38
38
/**
39
- * Set the columns to be displayed.
40
- *
41
- * @return void
42
- * @throws \Exception if an error occurs during parsing of the data
43
- */
39
+ * Set the columns to be displayed.
40
+ *
41
+ * @return void
42
+ * @throws \Exception if an error occurs during parsing of the data
43
+ */
44
44
public function setColumns ()
45
45
{
46
46
$ this ->columns = [
47
- "id " => [
48
- "label " => "ID " ,
49
- "filter " => [
50
- "enabled " => true ,
51
- "operator " => "= "
52
- ],
53
- "styles " => [
54
- "column " => "grid-w-10 "
55
- ]
56
- ],
57
- "name " => [
58
- "search " => [
59
- "enabled " => true
60
- ],
61
- "filter " => [
62
- "enabled " => true ,
63
- "operator " => "= "
64
- ]
65
- ],
47
+ "id " => [
48
+ "label " => "ID " ,
49
+ "filter " => [
50
+ "enabled " => true ,
51
+ "operator " => "= "
52
+ ],
53
+ "styles " => [
54
+ "column " => "grid-w-10 "
55
+ ]
56
+ ],
57
+ "name " => [
58
+ "search " => [
59
+ "enabled " => true
60
+ ],
61
+ "filter " => [
62
+ "enabled " => true ,
63
+ "operator " => "= "
64
+ ]
65
+ ],
66
66
"role_id " => [
67
67
'label ' => 'Role ' ,
68
68
'export ' => false ,
@@ -76,25 +76,25 @@ public function setColumns()
76
76
'data ' => Role::query ()->pluck ('name ' , 'id ' )
77
77
]
78
78
],
79
- "email " => [
80
- "search " => [
81
- "enabled " => true
82
- ],
83
- "filter " => [
84
- "enabled " => true ,
85
- "operator " => "= "
86
- ]
87
- ],
88
- "created_at " => [
89
- "sort " => false ,
90
- "date " => "true " ,
91
- "filter " => [
92
- "enabled " => true ,
93
- "type " => "date " ,
94
- "operator " => "<= "
95
- ]
96
- ]
97
- ];
79
+ "email " => [
80
+ "search " => [
81
+ "enabled " => true
82
+ ],
83
+ "filter " => [
84
+ "enabled " => true ,
85
+ "operator " => "= "
86
+ ]
87
+ ],
88
+ "created_at " => [
89
+ "sort " => false ,
90
+ "date " => "true " ,
91
+ "filter " => [
92
+ "enabled " => true ,
93
+ "type " => "date " ,
94
+ "operator " => "<= "
95
+ ]
96
+ ]
97
+ ];
98
98
}
99
99
100
100
/**
@@ -117,10 +117,10 @@ public function setRoutes()
117
117
}
118
118
119
119
/**
120
- * Return a closure that is executed per row, to render a link that will be clicked on to execute an action
121
- *
122
- * @return Closure
123
- */
120
+ * Return a closure that is executed per row, to render a link that will be clicked on to execute an action
121
+ *
122
+ * @return Closure
123
+ */
124
124
public function getLinkableCallback (): Closure
125
125
{
126
126
return function ($ gridName , $ item ) {
@@ -129,10 +129,10 @@ public function getLinkableCallback(): Closure
129
129
}
130
130
131
131
/**
132
- * Configure rendered buttons, or add your own
133
- *
134
- * @return void
135
- */
132
+ * Configure rendered buttons, or add your own
133
+ *
134
+ * @return void
135
+ */
136
136
public function configureButtons ()
137
137
{
138
138
// call `addRowButton` to add a row button
@@ -145,11 +145,11 @@ public function configureButtons()
145
145
}
146
146
147
147
/**
148
- * Returns a closure that will be executed to apply a class for each row on the grid
149
- * The closure takes two arguments - `name` of grid, and `item` being iterated upon
150
- *
151
- * @return Closure
152
- */
148
+ * Returns a closure that will be executed to apply a class for each row on the grid
149
+ * The closure takes two arguments - `name` of grid, and `item` being iterated upon
150
+ *
151
+ * @return Closure
152
+ */
153
153
public function getRowCssStyle (): Closure
154
154
{
155
155
return function ($ gridName , $ item ) {
0 commit comments