Skip to main content

AppFocusMixin

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

packages/app-core/src/AppFocus/index.ts

AppFocusMixin - Properties

property: focusedViewId

used to keep track of which view is in focus

// type signature
IMaybe<ISimpleType<string>>
// code
focusedViewId: types.maybe(types.string)

AppFocusMixin - Actions

action: setFocusedViewId

// type signature
setFocusedViewId: (viewId: string) => void