The enumeration that describes the possible different policies for displaying the focus of items managed by the FocusIndicatorManager<T>
Type Details
- yFiles module
- view
See Also
Constants
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 will only be shown when triggered via keyboard gestures and will automatically hide again when a pointing device is used.
Remarks
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.
See Also
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - ShowFocusPolicy
- The value to convert to an enum constant.
Returns
- ↪ShowFocusPolicy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - ShowFocusPolicy
- The numeric value of an enum constant.
Returns
- ↪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.