We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hallo, we were trying to use inlineContent by passing in the String which should be replaced with the Composable, however it didn't work.
inlineContent
inlineContent = mapOf("abc" to InlineTextContent( Placeholder( 0.5.em, MaterialTheme.typography.bodyMedium.lineHeight, PlaceholderVerticalAlign.AboveBaseline, ), ::MyComposableElement ))
Since in BasicText it works with an annotatedString, we figured a possible solution would be adding a custom tag.
BasicText
buildAnnotatedString { append("Hello") appendInlineContent("abc", "[myBox]") append("World!") }, inlineContent=mapOf("abc" to InlineTextContent( Placeholder( 10.em, MaterialTheme.typography.bodyMedium.lineHeight, PlaceholderVerticalAlign.AboveBaseline, ), ::MyComposableElement ))
For Example:
HTML Input
<div>foo <appendInline id="abc">[myBox]</appendInline> bar</div>
Inline Content
Output
foo insert composable... bar
The text was updated successfully, but these errors were encountered:
Gonna give this a bump, any updates on this?
Sorry, something went wrong.
No branches or pull requests
Hallo,
we were trying to use
inlineContent
by passing in the String which should be replaced with the Composable, however it didn't work.Since in
BasicText
it works with an annotatedString, we figured a possible solution would be adding a custom tag.For Example:
HTML Input
<div>foo <appendInline id="abc">[myBox]</appendInline> bar</div>
Inline Content
Output
foo insert composable... bar
The text was updated successfully, but these errors were encountered: