integration layer; merge work on indicators from forks with existing ingestion pipeline
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Directive, ElementRef, afterNextRender, inject } from '@angular/core';
|
||||
|
||||
/** Focuses and selects its input when it renders, for inline editors that appear on demand. */
|
||||
@Directive({ selector: 'input[appAutofocus]' })
|
||||
export class AutofocusDirective {
|
||||
constructor() {
|
||||
const element = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;
|
||||
afterNextRender(() => {
|
||||
element.focus();
|
||||
element.select();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user