Docs
API
  • precision

    Number

    This option is available for currency column type and for number column type if it has property format: 'number'.

    Example

    
    columns: [{
      index: 'salary',
      type: 'currency',
      title: 'Salary in Dollar',
      precision: 2
    },{
      index: 'salary_eur',
      type: 'currency',
      title: 'Salary in Euro',
      precision: 2,
      currency: Fancy.currency.EUR
    },{
      index: 'salary_gbp',
      type: 'currency',
      title: 'Salary in Pound',
      precision: 2,
      currency: Fancy.currency.GBP
    },{
      index: 'salary_jpy',
      type: 'currency',
      title: 'Salary in Yen',
      precision: 2,
      currency: Fancy.currency.JPY
    

    Sample on JSFiddle

    Default

    
    0