how to customize a plugin toolbar? #14131
Unanswered
qingtingzhiyu39
asked this question in
General
Replies: 1 comment
-
Hey @qingtingzhiyu39, I'm not 100% sure this works, but something like this could achieve the result you're looking for: protected renderFilter(widget?: Widget): React.ReactNode {
return <div ref={ref => {
if (widget) {
ref.appendChild(widget.node);
}
}}></div>
} |
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
-
hi,
I want to use the "registerToolbarItems" register a plugin's customize toobar.but I question is I want render a Widget,is not React.ReactNode,I dont't know how do,code is next.
Beta Was this translation helpful? Give feedback.
All reactions