Help Center/ Huawei Cloud Astro Zero/ FAQs/ Application Frontend Development/ How Do I Set Drop-Down List Options When Configuring a Bridge Instance of an Advanced Page Widget?
Updated on 2025-03-20 GMT+08:00

How Do I Set Drop-Down List Options When Configuring a Bridge Instance of an Advanced Page Widget?

Description

When configuring bridge instance properties on a widget's Data tab, where are the drop-down list options sourced from?

Figure 1 Bridge instance

Solution

When the model value of the bridge property in the widget matches the value defined in the bridge, the bridge instance options become available.

For example, if the value of model in the editor.js file is SingleRepireDataViewModel, the same value must be specified in the packageinfo.json file for the line chart data bridge and bar chart and line chart data bridge.

Figure 2 Value of model in the widget
Figure 3 Value of model in the bridge package

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more