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

afterRowMove event missing rows parameter #506

Open
duangrudee opened this issue Jul 31, 2018 · 0 comments
Open

afterRowMove event missing rows parameter #506

duangrudee opened this issue Jul 31, 2018 · 0 comments

Comments

@duangrudee
Copy link

duangrudee commented Jul 31, 2018

Hello,

I'm trying to catch afterRowMove event using this code

In myhotTable.component.html file

  <div class="hot-metrics-container">
        <hot-table #Handsontable 
            [data]="editedDataTable?.metrics"
            [options]="hotOptions?.options"
            [columns]="hotOptions?.columns"
            [colHeaders]="hotOptions?.colHeaders"
            (afterRowMove)="onAfterRowMoved($event[0], $event[1])">
        </hot-table>
    </div>

In myhotTable.component.ts , I have a simple event handler method

onAfterRowMoved(rows, target) {
        console.log(rows);
        console.log(target);
    }

No matter which rows I move, I always get the value of rows as an empty array. The value of target appears to be correct.

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

No branches or pull requests

1 participant