This topic provides a guide for using the button widget.
Component overview
The button is a control widget that, when clicked, triggers specified operations such as navigation, submission, and selection or cancellation. It allows customization of color, size, label content, and hyperlink, and can interact with other widgets to display linked pages or prompt information in a visualization application.
Scenarios
Buttons are commonly used in visualization applications for interface switching, hyperlink navigation, and executing submission or confirmation instructions.
Effect display
Static Button

Hyperlink Navigation

Interactive Scenario

Prerequisites
A data dashboard is available that supports creation using a template, a blank canvas.
Business data is ready for use. For more information, see Data Source.
Add button
Access the DataV console.
Navigate to and select the desired dashboard to access the canvas editing page.
In the left-side navigation pane, under the list, click the Button widget to add it to the canvas.
You can also use global search to add related widgets.
Integrate business data
After adding the widget, integrate the prepared business data for display. Click the button and in the right-side Data Source tab, select the data for the widget to render. 
The data fields received by the button are as follows.
Field
Description
valueThis data is output when the Click Button Event is triggered. For more information about events, see Blueprint Interaction.
An example data structure is as follows.
[ { "value": "Submit" } ]The key configuration items for the data source are as follows.
Configuration Item
Description
Select Data Source
Supports integrating various types of data such as CSV files, APIs, and various databases. For more information, see Data Source. You can edit data fields using a visual table or code.
Configure Filter (Optional)
Used to customize filter code to achieve data structure transformation, filtering, display, and simple calculations. For more information, see Manage Data Filters.
Configure Data Mapping
Used to map fields from the selected data source to the corresponding fields of the widget to achieve real-time data matching. Click the
icon to configure field styles.View Response Results
Used to display the data integrated into the widget in real-time. When the widget data source changes, the latest data will be displayed here.
Click the data response result to view the code of the data fields written.
Click to view the example to see the array type and code example received by the data source. You can refer to the example to write related fields.
Other data request configurations:
Disable Loading State: When selected, the loading content during widget initialization will not be displayed when updating or previewing the data dashboard.
Controlled Mode: When selected, the widget will not request data in the initialization state. At this time, data requests can only be initiated through the blueprint editor or global variable events.
Automatic Update Request: When selected, the platform will dynamically poll and update data according to the polling time you set. If not selected, you need to manually refresh the page or trigger a request to update data through the blueprint editor and global variable events.
Configure button
Click the button widget to configure its basic style, global variables, and interaction occurrences in the right-side panel. This includes advanced configuration and blueprint interaction configuration.
Style configuration
In the Style panel, configure the text, background, border, and other styles of the button in different states. The configuration items are as follows.
Click the
icon to quickly locate configuration items by searching keywords. The search supports fuzzy match. For more information, see Search Configuration Items.
The related configuration items are described as follows.
Configuration Item | Description | Illustration |
Global Configuration | Defines the position distribution, transparency, and interaction penetration of the widget in the data dashboard.
|
|
Global Style Configuration | Defines the display style of the button in the default state, including text content, text style, background style, and border style. The related instructions are as follows:
|
|
Click Style Configuration | Define the display style of the current button when the mouse clicks the button. For detailed configuration information, see the configuration content in Global style configuration. |
|
Hover Style Configuration | Define the display style of the current button when the mouse hovers over it. For specific configuration details, see the configuration content in Global style configuration. |
|
Advanced configuration
Define the interaction between the button and other widgets. The configuration items are as follows.
Configuration Item | Description | Illustration |
Interaction Occurrences | Defines the interaction behavior with other widgets to achieve widget filter interaction. Click the |
|
Associate Global Variables | Global parameters can be associated in the widget to achieve parameter passing between widgets for widget interaction. Click the Clicking the button will trigger a data request. By default, the |
Blueprint interaction
Use the Blueprint Editor to visually define interaction relationships and behavior logic between widgets.
Procedure
On the canvas editing page, click the
icon on the left side of the top menu bar to enter the blueprint editor.In the layer node list, hover over the button widget and click the
icon to add the widget to the main canvas.Configure the blueprint interaction effects of related widgets as needed through the connection method.
The example is as follows.





icon to define related interaction occurrences and interaction actions.
icon to enable the corresponding instruction and associate the required
icon after the corresponding occurrence or action on the right side of the blueprint configuration interface to view detailed descriptions of related parameters.