Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update readme select2
Browse files Browse the repository at this point in the history
  • Loading branch information
fherryfherry committed Apr 11, 2017
1 parent e96625f commit 8c75bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/form-select2.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ $this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'select2','datae

#### Code Sample
```php
$this->form[] = ['label'=>'Category','name'=>'categories_id','type'=>'select2','datatable'=>'categories,name'];
$this->form[] = ['label'=>'Category','name'=>'categories_id','type'=>'select2','datatable'=>'categories,name','datatable_ajax'=>false];
```
in datatable attribute, first value is a table name, and the second value is a field wich you want to show as option label
in datatable attribute, first value is a table name, and the second value is a field wich you want to show as option label. As you can see there is `datatable_ajax` attribute which you can set true or false to make it as an ajax request or show all the data at the same time.

### Make A Condition to the Query
```php
Expand Down

0 comments on commit 8c75bd7

Please sign in to comment.