Class TJSFocusIndicator
Hierarchy
- SvelteComponent<
TJSFocusIndicator.Props,
TJSFocusIndicator.Events,
TJSFocusIndicator.Slots,
>- TJSFocusIndicator (View Summary)
Indexable
-
[prop: string]: any
Constructors
constructor
-
new TJSFocusIndicator(
options: ComponentConstructorOptions<TJSFocusIndicator.Props>,
): TJSFocusIndicatorParameters
Returns TJSFocusIndicator
Methods
$destroy
-
Returns void
$on
-
Type Parameters
- K extends string
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
Provides a reusable absolute and block / flexbox positioned focus indicator for accessibility / keyboard navigation across components.
TJSFocusIndicatoris used in the standard library for menus like TJSMenu / TJSContextMenu and for folders like TJSIconFolder and TJSSvgFolder. This focus indicator is also available for 3rd party implementation for external consumers. By default, thespanelement is configured for block / flexbox usage. Set the propabsolutetotrueand absolute positioning is enabled. In this case make sure the parent element containingTJSFocusIndicatorhasrelativepositioning. There are several CSS variables that are available to alter the appearance.Example