55 3 . [ Configuration] ( 3-Configuration.md )
66 4 . [ Usage] ( 4-Usage.md )
77 * [ Basic Usage] ( #Basic-Usage )
8- * [ relation include ] ( #relation-include )
8+ * [ add a relation ] ( #add-a-relation )
99 * [ Searching] ( #Searching )
1010 * [ Sorting] ( #Sorting )
1111 * [ Selection filter] ( #Selection-filter-for-relations )
@@ -134,7 +134,7 @@ use the data-table component in your blade
134134
135135```
136136
137- ## relation include
137+ ## add a relation
138138
139139### ** server side**
140140
@@ -178,7 +178,7 @@ add relation column to columns prop
178178
179179### ** server side**
180180
181- to start using search input we will specific columns we want to search within by default search column will be `` id ``
181+ To start using search input we need to specify columns we want to search through, by default search column will be ``` id ` ``
182182
183183add ``` $searchColumns ``` property to start use search feature
184184
@@ -194,7 +194,7 @@ add ``` $searchColumns``` property to start use search feature
194194
195195to use the sort feature we will add a sort object
196196
197- there is 3 property inside sort
197+ there ar 3 property inside sort
198198
1991991- ```` sort.sortable ```` : if you want to use a column for sorting
200200
@@ -249,8 +249,7 @@ to use rows count per page we need to use ````perPage```` prop
249249
250250### ** client side**
251251
252- to add select input for relation column you will add filters prop as below
253- ``` selection ``` the object contains all filter selection data
252+ to add select input for relation column you will add filters prop as below , the ``` selection ``` object contains all filter selection data
254253
255254 ```` show ```` to disable or enable selection filter
256255
@@ -289,16 +288,16 @@ to add select input for relation column you will add filters prop as below
289288## Data mapping
290289### ** server side**
291290
292- if you would to restructure data we provide this method for you
291+ if you would to restructure data, we provide this method for you
293292
294- in first we will add ``` $isMapping ``` property equal true
293+ in first, we will add ``` $isMapping ``` property equal true
295294``` php
296295// app/DataGrid/PostGrid.php
297296
298297 protected $isMapping = true;
299298```
300- after that, we will add this method is contains callback
301- function return array contain our collection
299+ after that, we will add this method that contains callback
300+ function return array contain our collection
302301``` php
303302// app/DataGrid/PostGrid.php
304303
@@ -321,8 +320,10 @@ function return array contain our collection
321320
322321### ** server side**
323322
324- to add action buttons to rows we will use an action array to do that
325- we can add associative array to action array with two value button structure and visibility true or false
323+ To add action buttons to rows we will use an action array to do that, we can add associative array
324+ to action array with two value:
325+ - button structure
326+ - visibility true or false.
326327
327328``` php
328329// app/DataGrid/PostGrid.php
@@ -349,8 +350,8 @@ we can add associative array to action array with two value button structure and
349350
350351### ** server side**
351352
352- to use delete action just we can insert our delete button and add
353- ``` delete ``` class to Html tag and ``` data-path ``` attribute include path to delete element As shown below
353+ To use delete action we can just insert our delete button and add ``` delete ``` class
354+ to Html tag and ``` data-path ``` attribute include path to delete element As shown below
354355``` php
355356// app/DataGrid/PostGrid.php
356357
@@ -379,7 +380,7 @@ to use delete action just we can insert our delete button and add
379380
380381### ** client side**
381382
382- inside toolbar object will add url property contain our delete all route
383+ inside toolbar object we will add url property contains our ' delete all' route
383384``` html
384385// resources/posts/index.blade.php
385386
@@ -397,8 +398,8 @@ inside toolbar object will add url property contain our delete all route
397398```
398399
399400### ** server side**
400- in server-side will receive request containing ids
401- after that do our delete mission
401+ in server-side we will receive request containing ids list,
402+ after that we will do our delete mission
402403``` php
403404
404405public function destroyAll(Request $request){
0 commit comments