Author Topic: pqgrid.d.ts > Method group has no "option"  (Read 2095 times)

ohbayashi

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 41
    • View Profile
pqgrid.d.ts > Method group has no "option"
« on: May 07, 2018, 11:51:40 am »
ver.5.1.0 pqgrid.d.ts

Code: [Select]
        interface instance{

            :

            Group(params?: any):{
                addGroup(datIndx: numberorstring, indx?: number)
                collapse(level?: number)
                collapseAll(level?: number)
                collapseTo(address: string)
                expand(level?: number)
                expandAll(level?: number)
                expandTo(address: string)
                removeGroup(datIndx: numberorstring)
            }
            groupOption(obj: any)

TypeScript failed with "Group (). Option" at first.

Therefore, when examining pqgird.d.ts
There was "groupOption", but it could not be used.

When "option" was added to "Group", it could be used without problems.

I do not know which is the correct answer, but please give me correspondence.

Rework
Code: [Select]
        interface instance{

            :

            Group(params?: any):{
                addGroup(datIndx: numberorstring, indx?: number)
                collapse(level?: number)
                collapseAll(level?: number)
                collapseTo(address: string)
                expand(level?: number)
                expandAll(level?: number)
                expandTo(address: string)
                removeGroup(datIndx: numberorstring)
                option(obj: any)
            }
            groupOption(obj: any)

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: pqgrid.d.ts > Method group has no "option"
« Reply #1 on: May 07, 2018, 05:33:06 pm »
ohbayashi

Thanks for the correction, 2nd one is the correct one.