Skip to content

Commit

Permalink
Update Working-with-Events.md
Browse files Browse the repository at this point in the history
Rename evt => event
  • Loading branch information
andymilsted authored and msssk committed Jan 8, 2020
1 parent 1f8faf4 commit 10667f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/usage/Working-with-Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ Expanding upon the examples above...

```js
grid.on('.dgrid-content .dgrid-row:contextmenu', function (event) {
var row = grid.row(evt);
var row = grid.row(event);
// row.element == the element with the dgrid-row class
// row.id == the identity of the item represented by the row
// row.data == the item represented by the row
});

grid.on('.dgrid-header .dgrid-cell:click', function (event) {
var cell = grid.cell(evt);
var cell = grid.cell(event);
// cell.element == the element with the dgrid-cell class
// cell.column == the column definition object for the column the cell is within
// cell.row == the same object obtained from grid.row(evt)
// cell.row == the same object obtained from grid.row(event)
});
```

Expand All @@ -74,4 +74,4 @@ Event name|Emitted by
`dgrid-editor-show`|[`Editor`](../components/mixins/Editor.md#events) module before placing a shared editor
`dgrid-editor-hide`|[`Editor`](../components/mixins/Editor.md#events) module before removing an `editOn` editor
`dgrid-select`|[`Selection`](../components/mixins/Selection.md#events) module when one or more rows are selected
`dgrid-deselect`|[`Selection`](../components/mixins/Selection.md#events) module when one or more rows are deselected
`dgrid-deselect`|[`Selection`](../components/mixins/Selection.md#events) module when one or more rows are deselected

0 comments on commit 10667f7

Please sign in to comment.