Quasar: [v1] [feature request] QTable Column definition: format function had access to the whole row

Created on 25 Mar 2019  路  1Comment  路  Source: quasarframework/quasar

In the QTable Column definition, allow the format function access the whole row

currently

export default{
  columns: [ // array of Objects
    // column Object definition
    {
      // (optional) you can format the data with a function
      format: val => `${val}%`
    }
  ]
}

proporsed

export default{
  columns: [ // array of Objects
    // column Object definition
    {
      // (optional) you can format the data with a function
      format: (val, row) => `${val || row.other}%`
    }
  ]
}

Most helpful comment

Will be available in beta.14

>All comments

Will be available in beta.14

Was this page helpful?
0 / 5 - 0 ratings