Updated on 2025-03-24 GMT+08:00

Preset APIs of the magno Object

Table 1 Preset APIs of the magno object

API

Description

savePropertiesForWidget()

Saves the advanced settings of the current widget in the development environment.

savePropertiesForWidget()

This API is used to save the advanced settings of the current widget in the development environment.

/*
 * @param {*} props {}
 */
magno.savePropertiesForWidget({ // Attribute must correspond to the attribute in editor.js.
    barChartProps: JSON.stringify(_this.barPropList),
    barCommProps: JSON.stringify(_this.barCommProps)
});

The attribute value must be a string. If the attribute value is an object, the string conversion is required.