Author Topic: Util function-toLetter is not available in Angular TS declaration file  (Read 3453 times)

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Team, We have observed that toLetter util function is not available in TS declaration file and editor gives compilation error.
Do we have updated declaration file which can be used. Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Thanks for pointing it out. ETA for next version is next week and toLetter definition would be added in it.

For now you can add it manually by editing pqgrid.d.ts file and adding

Code: [Select]
function toLetter(indx: number): string

at around line 1500 near declaration of function formatNumber.

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Thanks for adding it. Yes, we have added in pqgrid.d.ts file as workaround solution and it works!

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Team, Adding to the above point, we have observed that oldList property of getChanges function also not available in declaration types.
It would be great if you can add that one as well. Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Noted, thanks

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
thanks, just observed and adding one more in above list.
cut() method is not available in grid instance of declaration file.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
cut is a method of Range object

https://paramquery.com/pro/api#method-Range

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Team, one more has come up in today's work that beforeTreeExpand() event is not available in grid options of declaration file.
It would be great if you can add this one in upcoming version. Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Noted.