Receive text selected by the user

Hi,

I’d like to create a sequence labeling app, where the user would do the following in a loop:

  1. Select a piece of text
  2. Confirm selection
  3. Select another piece of text
  4. Confirm selection
  5. Load a new document

In my app, I would like to receive the two pieces of selected text as input.

Is that possible with Dash?

Cheers
Konstantin