Multiple Nodes in same line #107
Unanswered
Jei-sKappa
asked this question in
Q&A
Replies: 1 comment
-
@Jei-sKappa In this case, you should customize the builder for your own type instead of passing the node's children to render service. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm new to AppFlowy and wondered if it could render several nodes in the same line.
I tried to create my own NodeWidget and make it render itself and its children in a Row by accessing the children property in the node but by doing so the children are rendered by Appflowy in another line. Can you tell me how I can do it?
Example
json =
{
"type":"text",
"attributes":{
"subtype":"myCustomNode"
},
"delta":[
{
"insert":"ParentText"
}
],
"children":[
{
"type":"text",
"delta":[
{
"insert":"Child One"
}
]
},
{
"type":"text",
"delta":[
{
"insert":"Child Two"
}
]
}
]
}.
Expected output:
Parent Child One Child Two
Current output
Parent Child One Child Two
Child One
Child Two
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions