Skip to main content

Web action source code

Web component source code is similar to defining public functions.

Source Code Example

Action Implementation

src/web/actions/showToast/index.js
import * as kboneAPI from "kbone-api";

export default function showModel({ data }) {
kboneAPI.showToast(data);
}

Source Code Parameter Description

data

Corresponds to the data field in Action Configuration. After binding events and actions in the Events panel of the low-code editor, users can configure parameters for bound actions, which will be passed through to this field.