harmony 鸿蒙Widget Page Capability Overview

  • 2023-06-24
  • 浏览 (741)

Widget Page Capability Overview

You can leverage the ArkUI declarative paradigm to develop ArkTS widget pages. The following widget pages are automatically generated by a DevEco Studio template. You can adjust the pages based on the real-world service scenarios.

WidgetPreviewPage

ArkTS widgets have full capabilities of JS widgets, with added animation and custom drawing capabilities plus partial support for components, events, animations, data management, and state management capabilities of the declarative paradigm.

For details about the capabilities supported by ArkTS widgets, see Learning ArkTS and ArkTS-based Declarative Development Paradigm.

Only the APIs marked with “supported in ArkTS widgets” can be used for ArkTS widgets. Pay special attention to the differences from applications.

For example, the following description indicates that the @Component decorator can be used in ArkTS widgets.

WidgetSupportApi

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Application Models

harmony 鸿蒙Using Explicit Want to Start an Application Component

harmony 鸿蒙Using Implicit Want to Open a Website

harmony 鸿蒙AbilityStage Component Container

harmony 鸿蒙Accessing a DataAbility

harmony 鸿蒙Accessing a DataShareExtensionAbility from the FA Model

harmony 鸿蒙AccessibilityExtensionAbility

harmony 鸿蒙Common action and entities Values

harmony 鸿蒙API Switching Overview

harmony 鸿蒙Switching of app and deviceConfig

0  赞