Skip to content

Commit 163a1b5

Browse files
committed
initial revisions for a few document files v10.0
1 parent b0999aa commit 163a1b5

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

add-column.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Add Column
22

3-
You can add a custom column on your response by using `addColumn` api.
3+
You can add a custom column to your response by using the `addColumn` api.
44

5-
> {note} added columns are assumed to be computed columns and not part of the database. Thus, search/sort will be disabled on those columns. If you need them, use the `editColumn` api instead.
5+
> {note} added columns are assumed to be computed columns and not part of the database. Thus, search/sort will be disabled for those columns. If you need them, use the `editColumn` api instead.
66
77
<a name="blade"></a>
88
## Add Column with Blade Syntax

buttons-config.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Namespace configuration is used by the datatables command generator.
1212
```
1313

1414
### DataTable Base Namespace/Directory
15-
This is the base namespace/directory to be created when a new DataTable was called.
16-
This directory is appended on default Laravel namespace.
15+
This is the base namespace/directory to be created when a new DataTable is called.
16+
This directory is appended to the default Laravel namespace.
1717

1818
**Usage:**
1919
```php artisan datatables:make User```
@@ -24,16 +24,16 @@ This directory is appended on default Laravel namespace.
2424
**Export filename:** ```users_(timestamp)```
2525

2626
### Model Option
27-
This is the base namespace/directory where your model's are located.
28-
This directory is appended on default Laravel namespace.
27+
This is the base namespace/directory where your models are located.
28+
This directory is appended to the default Laravel namespace.
2929
**Usage:** ```php artisan datatables:make Post --model```
3030
**Output:** ```App\DataTables\PostDataTable```
3131
**With Model:** ```App\Post``
3232
**Export filename:** ```posts_(timestamp)```
3333

3434
<a name="pdf-generator"></a>
3535
## PDF Generator
36-
Set the PDF generator to be used when converting your dataTable to pdf.
36+
Set the PDF generator to be used when converting your dataTable to PDF.
3737

3838
Available generators are: `excel`, `snappy`
3939

buttons-console.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In this example, we will create a DataTable service class.
1818
php artisan datatables:make Posts
1919
```
2020

21-
This will create an `PostsDataTable` class on `app\DataTables` directory.
21+
This will create a `PostsDataTable` class in the `app\DataTables` directory.
2222

2323
```php
2424
namespace App\DataTables;
@@ -101,7 +101,7 @@ In this example, we will pass a `--model` option to set the model to be used by
101101
php artisan datatables:make Posts --model
102102
```
103103

104-
This will generate a `App\DataTables\PostsDataTable` class that uses `App\Post` as the base model for our query.
104+
This will generate an `App\DataTables\PostsDataTable` class that uses `App\Post` as the base model for our query.
105105
The exported filename will also be set to `posts_(timestamp)`.
106106

107107
```php
@@ -194,12 +194,12 @@ This will allow to use a non-standard namespace if front-end and back-end models
194194

195195
### Action Option
196196

197-
In this example, we will pass a `--action` option to set a custom path for the action column view.
197+
In this example, we will use the `--action` option to set a custom path for the action column view.
198198

199199
```
200200
php artisan datatables:make Posts --action="client.action"
201201
```
202-
If not provided, a default path will be used. It will needs to be changed thereafter.
202+
If no path is provided, a default path will be used. It will need to be changed thereafter.
203203

204204
### Columns Option
205205

@@ -208,13 +208,13 @@ In this example, we will pass a `--columns` option to set the columns to be used
208208
```
209209
php artisan datatables:make Posts --columns="id,title,author"
210210
```
211-
If not provided, a default set of columns will be used. It will needs to be manually changed thereafter.
211+
If not provided, a default set of columns will be used. It will need to be manually changed thereafter.
212212

213213

214214

215215
## Creating a DataTable Scope service class
216216

217-
DataTable scope is class that we can use to limit our database search results based on the defined query scopes.
217+
DataTable scope is a class that we can use to limit our database search results based on the defined query scopes.
218218

219219
```
220220
php artisan datatables:scope ActiveUser

buttons-custom.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Custom Actions
22

3-
You can enable custom actions on your buttons, as follows:
3+
You can enable custom actions on your buttons as follows:
44

55
Update `UsersDataTable` class and overload the `actions` property. Here we are
6-
disabling the `csv` and `pdf` action (so they cannot be fired by hijacking the
6+
disabling the `csv` and `pdf` actions (so they cannot be fired by hijacking their
77
request) and enabling a `myCustomAction`.
88

99

0 commit comments

Comments
 (0)