Created
April 11, 2017 11:21
-
-
Save brakmic/3f265fd892e4201bf2df9c4703b55648 to your computer and use it in GitHub Desktop.
dispatching an action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.customerTable.on('select', (e: Event, dt: DataTables.DataTable, | |
type: string, indexes: number[]) => { | |
let row: INWCustomer = dt.rows(indexes[0]).data()['0']; | |
const customer = this.toLocalCustomer(row); | |
this.store.dispatch(this.customerActions.customerSelected(customer)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment