noteListBar

An app state of the editor. You can obtain the noteListBar state and integrate it with React components.


Data Structure

  • Name
    selectedNoteIds
    Type
    Array<string>
    Description

    An array of note ID of selected notes on the note list bar.

  • Name
    actionTargetNoteIds
    Type
    Array<string>
    Description

    An array of note IDs of target notes for context menu on the note list bar.

Get the noteListBar state manually:

const { noteListBar } = inkdrop.store.getState()

Connect the state with your React component:

  import { useSelector } from 'react-redux'
  const selector = ({ noteListBar }) => noteListBar
  const MyComponent = props => {
    const noteListBar = useSelector(selector)
    // render
  }
Can you help us improve the docs? 🙏

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!