Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output index number for each row? #255

Open
mspanish opened this issue Jul 5, 2020 · 3 comments
Open

output index number for each row? #255

mspanish opened this issue Jul 5, 2020 · 3 comments
Labels

Comments

@mspanish
Copy link

mspanish commented Jul 5, 2020

I see you can access that on click via selection.range - but is there an easy way to have a column and specify the field as the INDEX for that row?

@ota-meshi
Copy link
Member

Thank you for your question.

Use getRecordIndexByRow(row: number): number to get the record index of the given cell row number. Use getRowRecord(row: number) to get the row data.

Use getField(col: number, row: number) to get the field definition for the given cell address.

@mspanish
Copy link
Author

mspanish commented Jul 6, 2020

Wonderful thank you so much for your quick attention and help. Your grid is so well thought out - the styles, sorting logic, speed, everything - I am just amazed how you've done so much in such a small package. THANK YOU -
ありがとうございました
Arigatōgozaimashita :)

@ota-meshi
Copy link
Member

I'm glad to hear that! thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants