Skip to content

Instantly share code, notes, and snippets.

@brakmic
Created April 11, 2017 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brakmic/3f265fd892e4201bf2df9c4703b55648 to your computer and use it in GitHub Desktop.
Save brakmic/3f265fd892e4201bf2df9c4703b55648 to your computer and use it in GitHub Desktop.
dispatching an action
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