This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7b06ac
commit f3c2c74
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Callback | ||
|
||
### Table : Products | ||
| Field Name | Data Type | | ||
| ---------- | ----------- | | ||
| id | int (PK) | | ||
| name | varchar(255) | | ||
| price | double | | ||
|
||
### Products | ||
```php | ||
$this->col[] = ["label"=>"Name","name"=>"name"]; | ||
$this->col[] = ["label"=>"Price","name"=>"price","callback"=>function($row) { | ||
return number_format($row->price); | ||
}]; | ||
``` | ||
|
||
## What's Next | ||
- [How To Make A Subquery Column in Grid Data](./how-to-make-subquery.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters