QTable format date and number
-
I need to format table columns values like ths :
data_entrada -> “dd-mm-yyyy”
valor_entrada -> 12.345,66I didn’t find a working example of that.
Somebody can ahow me an example of how to achieve this ?Tks
-
I had success formatting the date width the excelent Quasar Date Utils
format: val => date.formatDate(val, ‘DD-MM-YYYY’) (*)the number, I’m not sure if it’s the best way of doing it, but it works
format: val => parseFloat(val).toLocaleString(‘pt-br’, { minimumFractionDigits: 2, maximumFractionDigits: 2 })- needs to import
import { date } from ‘quasar’
I solved my problem but leave this post for anybody who has the same problem
Tks
- needs to import
-
@Pedro good solving it on your own, docs is a gold mine, just need some diligent reading :). thanks for sharing.