Skip to content

Commit

Permalink
fixed #8108 ListBox - Add selected option value to onClick and onDblC…
Browse files Browse the repository at this point in the history
…lick
  • Loading branch information
yigitfindikli committed Sep 2, 2019
1 parent a3d6930 commit 6d339a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/components/listbox/listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export class Listbox implements AfterContentInit, ControlValueAccessor {

this.onDblClick.emit({
originalEvent: event,
option: option,
value: this.value
})
}
Expand Down
6 changes: 4 additions & 2 deletions src/app/showcase/components/listbox/listboxdemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,16 @@ <h3>Events</h3>
<tr>
<td>onDblClick</td>
<td>event.originalEvent: browser event<br />
event.value: Clicked selecte item
event.value: single value or an array of values that are selected
event.option: option that are clicked
</td>
<td>Callback to invoke when an item is double clicked.</td>
</tr>
<tr>
<td>onClick</td>
<td>event.originalEvent: browser event<br />
event.value: single value that are clicked
event.value: single value or an array of values that are selected
event.option: option that are clicked
</td>
<td>Callback to invoke when listbox option clicks.</td>
</tr>
Expand Down

0 comments on commit 6d339a7

Please sign in to comment.