• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.selectionInput.SelectionPanel (Word Selection Panel) (System API)
2
3This module provides the properties and types of the word selection panel.
4
5> **NOTE**
6>
7> - The initial APIs of this module are supported since API version 20. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8> - The APIs provided by this module are system APIs.
9
10## Modules to Import
11
12```ts
13import { PanelInfo, PanelType } from '@kit.BasicServicesKit';
14```
15
16## PanelInfo
17
18Describes the properties of the word selection panel.
19
20**System capability**: SystemCapability.SelectionInput.Selection
21
22| Name| Type| Read-Only| Optional| Description|
23| --------- | -------- | -------- | -------- | -------- |
24| panelType | [PanelType](#paneltype) | No| No| Type of the word selection panel.|
25| x | number | No| No| X-coordinate of the upper left corner of the word selection panel, in px.|
26| y | number | No| No| Y-coordinate of the upper left corner of the word selection panel, in px.|
27| width | number | No| No| Width of the word selection panel, in px.|
28| height | number | No| No| Height of the word selection panel, in px.|
29
30## PanelType
31
32Enumerates the word selection panel types.
33
34**System capability**: SystemCapability.SelectionInput.Selection
35
36| Name         | Value  | Description        |
37| ------------- | ---- | ------------ |
38| MENU_PANEL | 1    | Menu panel.|
39| MAIN_PANEL | 2    | Main panel.|
40