ColumnMeta Process
Number meta
name | income |
John |
50,000 |
Marry |
60,000 |
Peter |
100,000 |
Donald |
80,000 |
->pipe(new ColumnMeta(array(
"income" => array(
"type" => "number",
"decimals" => 2,
"decimalPoint" => ".",
"thousandSeparator" => ",",
)
)))
name | income |
John |
50,000.00 |
Marry |
60,000.00 |
Peter |
100,000.00 |
Donald |
80,000.00 |
The example demonstrates usage of `ColumnMeta` process to change data meta information.
__String meta__
```
->pipe(new ColumnMeta(array(
"name" => array(
"label" => "NAME",
"type" => "string",
"prefix" => "prefix_",
"suffix" => "_suffix",
)
)))
```
__Number meta__
```
->pipe(new ColumnMeta(array(
"income" => array(
"type" => "number",
"decimals" => 2,
"decimalPoint" => ".",
"thousandSeparator" => ",",
)
)))
```
__Datetime meta__
```
->pipe(new ColumnMeta(array(
"joined_date" => array(
"type" => "datetime",
"format" => "Y-m-d H:i:s",
"displayFormat" => "d-m-Y"
)
)))
```