Class TJSFocusWrap
Hierarchy
- SvelteComponent<TJSFocusWrap.Props, TJSFocusWrap.Events, TJSFocusWrap.Slots>
- TJSFocusWrap (view full)
Index
Constructors
Methods
Constructors
constructor
- new TJSFocus
Wrap (options): TJSFocusWrap Parameters
- options: ComponentConstructorOptions<TJSFocusWrap.Props>
Returns TJSFocusWrap
Methods
$destroy
$on
- $on<K>(type, callback): (() => void)
Type Parameters
Parameters
- type: K
- callback: ((e: CustomEvent<any>) => void)
- (e): void
Parameters
- e: CustomEvent<any>
Returns void
Returns (() => void)
- (): void
Returns void
$set
- $set(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
.