User Tools

Site Tools


dev:eg-combobox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev:eg-combobox [2025/04/02 14:56] – [Frustration Memes] aneimandev:eg-combobox [2025/04/02 15:59] (current) – syntax highlighting sleary
Line 20: Line 20:
 There are new event emitters to allow keyboard shortcuts in general, and there is a specific one for the Enter key where the selected value is emitted. There are new event emitters to allow keyboard shortcuts in general, and there is a specific one for the Enter key where the selected value is emitted.
  
 +<code html>
    <eg-combobox    <eg-combobox
    (comboboxEnter)="saveSelectedValueSomewhere($event)"    (comboboxEnter)="saveSelectedValueSomewhere($event)"
Line 29: Line 30:
    (orgSelectKey)="$event.key === 'Escape' ? cancel() : handleKeydown($event)" />    (orgSelectKey)="$event.key === 'Escape' ? cancel() : handleKeydown($event)" />
    </eg-org-select>    </eg-org-select>
 +</code>
  
 The Enter key event's payload is the selected option ID. The generic keyboard handler is a [[https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent|keyboard event]]. The Enter key event's payload is the selected option ID. The generic keyboard handler is a [[https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent|keyboard event]].
dev/eg-combobox.1743620209.txt.gz · Last modified: 2025/04/02 14:56 by aneiman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.