Prerequisites
This topic requires the desktop version of the development tool. For more information, see the desktop version of the development tool instructions.
Background information
This document is relevant for users developing custom components. To integrate custom components with the features of DataV's blueprint editor, developers must adhere to the editor's rules. Upon creating the component with the developer tool, an index.js file and a package.json file are generated in the local component package folder. Modifying these files is necessary to implement the operation.
Event trigger
To implement the event trigger feature in custom components, use the Current Value Change event from the ticker board component as an example. 
Open the
package.jsonfile after creating the component with the developer tool.Locate the
eventsfield within the datav field in thepackage.jsonfile.ImportantEnsure each event in the blueprint editor matches the event specified in the custom component's
eventsfield; otherwise, the editor will not detect it.Define events in the current events field, customizing the description for the
event-nameand the value field name.
NoteYou can customize both event and field names with multiple entries, enhancing the variety of events displayed on the blueprint editor node page.
Open the
index.jsfile and configure the event name for theemitmethod.this.emit('event-name', obj);NoteThe event name used in emit must match the one in the
package.jsonfile. Pass parameters as an object type, and include multiple fields if necessary.
Import data interface
Implement the Import Data Interface action in custom components, taking the ticker board component's Import Data Interface action as an example. 
Open the
index.jsfile after creating the component with the developer tool.Find the
renderfield within the datav field in theindex.jsfile.Customize the action code logic for the Import Data Interface within the
renderfield.
NoteYou can customize action logic with multiple entries, which increases the variety of actions available on the blueprint editor node page.
Add interactive actions
Implement multiple interactive actions in custom components, using the Show and Hide actions from the ticker board component as examples. 
Open the
package.jsonfile after creating the component with the developer tool.Search for the
publicHandlerfield within the datav field in thepackage.jsonfile.Customize the descriptions for Show and Hide within the
publicHandlerfield, ensuring they align with the method names in theindex.jsfile.
NoteCustomize action logic with multiple entries to expand the range of actions displayed on the blueprint editor node page.
Set the content of
containerin theindex.jsfile.
NoteField names in
containermust correspond with those in thepackage.jsonfile.this.container.show(); // Show code, developer customizes this.container.hide(); // Hide code, developer customizes