We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439aa2a commit dbd990aCopy full SHA for dbd990a
src/Component.ts
@@ -89,6 +89,16 @@ export class Component<T extends HTMLElement = HTMLElement> extends ElementCompo
89
return new Component<T>(element);
90
}
91
92
+ /**
93
+ * Puts the element into
94
+ * {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus Focus}
95
+ * @param options
96
+ */
97
+ public focus(options?: FocusOptions): this {
98
+ this.node.focus(options);
99
+ return this;
100
+ }
101
+
102
/**
103
* Set style property
104
* @param name Property name
0 commit comments