CRUD: currency columun #873
-
How can i set a column to show a currency fields with correct format for Italy ? i'm using BackPack v6 Thanks for help :) |
Beta Was this translation helpful? Give feedback.
Answered by
pxpm
Mar 19, 2024
Replies: 2 comments 8 replies
-
Hey @blondie63 Please try the available options of the number column.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I think your column definition is wrong @blondie63 $this->crud->addColumn([
'name' => 'importo',
'label' => 'Importo',
'type' => 'number',
'prefix' => '€ ',
'suffix' => ' EUR',
'decimals' => 2,
'dec_point' => ',',
'thousands_sep' => '.',
]); Should work. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for the delay on response @blondie63
You mean something like:
'textAlign => 'right'
in the column definition ? I think that's something that could be useful yes, but only if we can do it via column wrapper (we only need to change one file). If that requires changes in ALL columns, it may be more difficult to justify the effort for such small change.Cheers