The enumeration that describes the possible different policies for displaying the focus of items managed by the FocusIndicatorManager<T>
Members
No filters for this type
Constants
Indicates that irrespective of the keyboard focus and usage, the focus indicator should always be rendered for the focusedItem.
Indicates that irrespective of the keyboard focus and usage, the focus indicator should always be rendered for the focusedItem.
Indicates that the focus indicator should be shown depending on the value of focused.
Indicates that the focus indicator should be shown depending on the value of focused.
This is similar to WHEN_FOCUSED, but additionally requires that usingKeyboard is also set to true, which is typically done by NavigationInputMode
Note that NavigationInputMode only sets this by default when the user is explicitly moving just the focus, because otherwise there should be a visible selection change. If you disable or prevent selection visualization, you should manually set the flag to true on key presses, or use the other options instead.
static
See Also
Developer's Guide
Static Methods
Converts the given argument to an enum constant of this enum type.
Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static
Parameters
- value: ShowFocusPolicy
- The value to convert to an enum constant.
Return Value
- ShowFocusPolicy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Returns the name of the given enum constant.
static
Parameters
- value: ShowFocusPolicy
- The numeric value of an enum constant.
Return Value
- string
- The name of the enum constant.
Throws
- Exception ({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.