ColumnMeta Process
String meta
name | income |
John |
50,000 |
Marry |
60,000 |
Peter |
100,000 |
Donald |
80,000 |
->pipe(new ColumnMeta(array(
"name" => array(
"label" => "NAME",
"type" => "string",
"prefix" => "prefix_",
"suffix" => "_suffix",
)
)))
NAME | income |
prefix_John_suffix |
50,000 |
prefix_Marry_suffix |
60,000 |
prefix_Peter_suffix |
100,000 |
prefix_Donald_suffix |
80,000 |
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"
)
)))
```