Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to listen for value changes? #382

Open
carbaj03 opened this issue Oct 1, 2024 · 1 comment
Open

How to listen for value changes? #382

carbaj03 opened this issue Oct 1, 2024 · 1 comment
Labels
question Further information is requested

Comments

@carbaj03
Copy link

carbaj03 commented Oct 1, 2024

Is there something similar to the onValueChanged of the BasicTextField?

@MohamedRejeb MohamedRejeb added the question Further information is requested label Oct 1, 2024
@MohamedRejeb
Copy link
Owner

For now there are no callbacks, you can use LaunchedEffect:

LaunchedEffect(richTextState.annotatedString) {
    println("Text changed: ${richTextState.annotatedString.text}")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants