Customising Toolbar Widget #3007
Replies: 1 comment
-
Hi, thanks for the question! JointJS+ widgets, such as Toolbar, are built using vanilla JavaScript and manipulate the DOM directly, which can make integration with React’s rendering model a bit tricky. That said, it’s possible to use them alongside React, and you can customize or extend existing widgets by extending the Widget class and supplying your own logic. You can find examples of this approach in the KitchenSink application (e.g., the navigator toolbar) or in this demo: For full control over rendering, the most flexible solution is to build the toolbar entirely in React from scratch. That said, we’ve just released a JointJS React Alpha: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
Hi all.
I've been dabbling with jointjs-plus for a bit and I've been using it for a POC and I'm struggling to find a good solution to customise the widgets.
I would like to integrate with React - use the Toolbar widget but also add additional ( react-tabs example ) functionality to it.
Is there any documentation of achieving it? Or any docs how to create custom widgets with custom rendering?
Steps to reproduce
Any JointJS version in React.
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions