Skip to content

Commit 10667f7

Browse files
andymilstedmsssk
authored andcommitted
Update Working-with-Events.md
Rename evt => event
1 parent 1f8faf4 commit 10667f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/usage/Working-with-Events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ Expanding upon the examples above...
4545

4646
```js
4747
grid.on('.dgrid-content .dgrid-row:contextmenu', function (event) {
48-
var row = grid.row(evt);
48+
var row = grid.row(event);
4949
// row.element == the element with the dgrid-row class
5050
// row.id == the identity of the item represented by the row
5151
// row.data == the item represented by the row
5252
});
5353

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

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

0 commit comments

Comments
 (0)