• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Creating an ArkTS Widget
2
3To create an ArkTS widget in an existing application project, perform the following steps:
4
51. Create a widget.
6
7   ![WidgetProjectCreate1](figures/WidgetProjectCreate1.png)
8
92. Select a widget template based on the actual service scenario.
10
11   ![WidgetProjectCreate2](figures/WidgetProjectCreate2.png)
12
133. Set **Language** to **ArkTS** and click **Finish**.
14
15   ![WidgetProjectCreate3](figures/WidgetProjectCreate3.png)
16
17After an ArkTS widget is created, the following widget-related files are added to the project directory: **EntryFormAbility.ts** (widget lifecycle management file), **WidgetCard.ets** (widget page file), and **form_config.json** (widget configuration file).
18
19![WidgetProjectView](figures/WidgetProjectView.png)
20