Frontend API
export class NameComponent
Name component to change the name of a node. To use on every node’s detail view. It contains only one form field : a name input to change the name of the linked node.
When the user type a new name in the field, as soon as she hit enter or click outside the field, it post a ‘blockNameChanged’ on the eventhub. Then the components that use this data will use it to update their view. It also send a ‘graph:changenode’ message to the server to synchronize it.
Created by antoine on 10/07/17.
onChange (value: string): void
On change method bind called when the input field triggers an onchange event. It create a timeout that wait 200ms before sending the name update.
- Parameters:
value
— the new name the user input
userStoppedEditing (value: string): void
Send a message on the eventhub for the other components to update their view and send a ‘graph:changenode’ message to the server to synchronize its data.
- Parameters:
value
— the new name