Page 1 of 1

[VUE][TypeScript] renderData type

Posted: Mon Aug 08, 2022 12:40 am
by pmiklashevich

Hi! Please produce typings for renderData argument of column renderer function.

const columns: Partial<ColumnConfig>[] = [
  {
    text: 'Groups',
    field: 'title',
    flex: 1,
  },
  {
    text: '#',
    field: 'players',
    width: 20,
    align: 'right',
    // TODO: use Bryntum typings instead
    renderer({ value } : { value: Array }): string {
      return value.length
    },
  },
]

P.S. Same for tooltipRenderer. And fix the argument list since it is an object with properties.


Re: [VUE][TypeScript] renderData type

Posted: Mon Aug 08, 2022 9:07 am
by tasnim

Hi Pavlo,
Thanks for your report. I've created a ticket for that. Here it is: https://github.com/bryntum/support/issues/5015

Best,
Tasnim