Class TJSFocusWrap
Hierarchy
- SvelteComponent<TJSFocusWrap.Props, TJSFocusWrap.Events, TJSFocusWrap.Slots>
- TJSFocusWrap (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new TJSFocusWrap(
options: ComponentConstructorOptions<TJSFocusWrap.Props>,
): TJSFocusWrap Parameters
- options: ComponentConstructorOptions<TJSFocusWrap.Props>
Returns TJSFocusWrap
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: CustomEvent<any>) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
$set
- $set(props: Partial<TJSFocusWrap.Props>): void
Parameters
- props: Partial<TJSFocusWrap.Props>
Returns void
Provides a component to wrap focus to the first focusable element in the given
elementRoot
prop. Place this component as the last child inelementRoot
.