File tree 4 files changed +34
-3
lines changed
4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ This package is to displaying the model data in a Grid table.
26
26
27
27
Run the composer command:
28
28
29
- ` composer require itstructure/laravel-grid-view "~1.0.3 " `
29
+ ` composer require itstructure/laravel-grid-view "~1.0.4 " `
30
30
31
31
### If you are testing this package from a local server directory
32
32
Original file line number Diff line number Diff line change 1
1
### CHANGE LOG:
2
2
3
+ ** 1.0.4 July 10, 2020:**
4
+ - Added grid attributes with default ** true** value:
5
+ - ` tableBordered `
6
+ - ` tableStriped `
7
+ - ` tableHover `
8
+ - ` tableSmall `
9
+
3
10
** 1.0.3 July 10, 2020:**
4
11
- Container changes for ` .card ` bootstrap css style.
5
12
Original file line number Diff line number Diff line change 37
37
</div >
38
38
</div >
39
39
<div class =" card-body" >
40
- <table class =" table table-bordered table-striped table-hover" >
40
+ <table class =" table @if ( $tableBordered ) table-bordered @endif @if ( $tableStriped ) table-striped @endif @if ( $tableHover ) table-hover @endif @if ( $tableSmall ) table-sm @endif " >
41
41
<thead >
42
42
<tr >
43
43
<th width =" 5%" >#</th >
Original file line number Diff line number Diff line change @@ -101,6 +101,26 @@ class Grid
101
101
*/
102
102
protected $ resetButtonLabel ;
103
103
104
+ /**
105
+ * @var bool
106
+ */
107
+ protected $ tableBordered = true ;
108
+
109
+ /**
110
+ * @var bool
111
+ */
112
+ protected $ tableStriped = true ;
113
+
114
+ /**
115
+ * @var bool
116
+ */
117
+ protected $ tableHover = true ;
118
+
119
+ /**
120
+ * @var bool
121
+ */
122
+ protected $ tableSmall = true ;
123
+
104
124
/**
105
125
* Grid constructor.
106
126
* @param array $config
@@ -145,7 +165,11 @@ public function render(): string
145
165
'useSendButtonAnyway ' => $ this ->useSendButtonAnyway ,
146
166
'searchButtonLabel ' => $ this ->getSearchButtonLabel (),
147
167
'resetButtonLabel ' => $ this ->getResetButtonLabel (),
148
- 'sendButtonLabel ' => $ this ->getSendButtonLabel ()
168
+ 'sendButtonLabel ' => $ this ->getSendButtonLabel (),
169
+ 'tableBordered ' => $ this ->tableBordered ,
170
+ 'tableStriped ' => $ this ->tableStriped ,
171
+ 'tableHover ' => $ this ->tableHover ,
172
+ 'tableSmall ' => $ this ->tableSmall
149
173
])->render ();
150
174
}
151
175
You can’t perform that action at this time.
0 commit comments