Options
All
  • Public
  • Public/Protected
  • All
Menu

Options related to ReaderView.focusOnReadingPosition() deciding which elements should receive focus.

When multiple properties are set to true, focus is applied in the following order:

  1. Page container iframe (focusOnPageContainer)
  2. Page body element (focusOnPageBodyElement)
  3. Reading position element (focusNearContentLocation)

At least one property must be set to true for any focus action to be performed.

Hierarchy

  • IFocusOnReadingPositionOptions

Index

Properties

focusNearContentLocation

focusNearContentLocation: boolean

If the element or nearest element matching the content location should be focused.

nativeparamindex

2

focusOnPageBodyElement

focusOnPageBodyElement: boolean

If the body element of the page content should be focused.

nativeparamindex

1

focusOnPageContainer

focusOnPageContainer: boolean

If focus should be applied to the page container iframe, before applying focus on elements within the iframe. This is necessary on some platforms in order for accessibility technologies to detect focus() changes inside iframes. If the page container isn't an iframe, this option has no effect.

nativeparamindex

0

Generated using TypeDoc