Skip to content
Snippets Groups Projects
Commit 51a86d0c authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Implementes checkbox to change visibility of node labels

parent fdc10d5b
Branches
Tags
1 merge request!2Implemented editor in the react framework
Pipeline #56782 passed
......@@ -406,6 +406,24 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
}
onChange={this.forceUpdate}
/>
<hr />
<div>
<input
type={"checkbox"}
checked={this.state.visibleLabels}
onChange={(event) => {
const newValue = event.target.checked;
if (newValue == this.state.visibleLabels) {
return;
}
this.setState({
visibleLabels: newValue,
});
}}
/>
Node labels // TODO: Proper label for checkbox
</div>
</div>
{this.state.graph ? (
<ReactForceGraph2d
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment