Skip to content

Commit f411f52

Browse files
committed
feat(AbstractDropdownView): add blur event to view spec
1 parent d1504f1 commit f411f52

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/dropdown/abstract-dropdown-view.class.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ export class AbstractDropdownView {
1919
* Emits selection events to other class.
2020
*/
2121
@Output() select: EventEmitter<Object>;
22+
/**
23+
* Event to suggest a blur on the view.
24+
* Emits _after_ the first/last item has been focussed
25+
* ex.
26+
* ArrowUp -> focus first item
27+
* ArrowUp -> emit event
28+
*
29+
* It's recommended that the implementing view include a specific type union of possible blurs
30+
* ex. `@Output() blur = new EventEmitter<"top" | "bottom">();`
31+
*/
32+
@Output() blur: EventEmitter<any>;
2233
/**
2334
* Specifies whether or not the `DropdownList` supports selecting multiple items as opposed to single
2435
* item selection.

0 commit comments

Comments
 (0)