TextSelectionChangeEvent

Overview

  • **Category**: Event
  • **Inherits**: flet.Event (from flet.controls.control_event.Event)
  • **Description**: An event emitted when the text selection changes.
  • Properties

  • cause: TextSelectionChangeCause | None
  • - **Description**: The cause of the selection change. - **Type**: flet.controls.core.text.TextSelectionChangeCause or None. - **Scope**: Class and Instance attribute.
  • selected_text: str
  • - **Description**: The selected text. - **Type**: str. - **Scope**: Instance attribute.
  • selection: TextSelection
  • - **Description**: The new text selection. - **Type**: flet.controls.core.text.TextSelection. - **Scope**: Instance attribute.

    Platform Support

  • All platforms (Web, Desktop, Mobile) where Flet is supported.