Best way to format data in the table
- data is stored in DB, for example: 0.40 (as money) and quantity 1234.56 (as float)
- i would like to display localized data, for example: €0,40 (as money in EUR) and quantity 1 234.56 (as set in selected locale)
Tables\Columns\TextColumn::make('price')->money('eur')But this displays incorrect value as "€4,00" (it should be €0,40).
Q1: What's wrong here?
And i see no
->number() type (as in Filament Form component).Q2: What is the best way to do it in Filament Table component?
Should i customise every column with my own implementation
->formatStateUsing()?