openharmony 鸿蒙 js-apis-selectionInput-selectionPanel

2026-08-25 浏览 (1)

@ohos.selectionInput.SelectionPanel (Word Selection Panel)

This module provides the properties and types of the word selection panel.

NOTE

  • The initial APIs of this module are supported since API version 24. Newly added APIs will be marked with a superscript to indicate their earliest API version.
  • This module is supported only on PCs/2-in-1 devices.

Modules to Import

import { PanelInfo, PanelType } from '@kit.BasicServicesKit';

PanelInfo

Describes the properties of the word selection panel.

System capability: SystemCapability.SelectionInput.Selection

Model constraint: This API can be used only in the stage model.

NameTypeRead-OnlyOptionalDescription
panelTypePanelTypeNoNoType of the word selection panel.
xnumberNoNoX-coordinate of the upper left corner of the word selection panel, in px.
ynumberNoNoY-coordinate of the upper left corner of the word selection panel, in px.
widthnumberNoNoWidth of the word selection panel, in px.
heightnumberNoNoHeight of the word selection panel, in px.

PanelType

Enumerates the word selection panel types.

System capability: SystemCapability.SelectionInput.Selection

Model constraint: This API can be used only in the stage model.

NameValueDescription
MENU_PANEL1Menu panel.
MAIN_PANEL2Main panel.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 errorcode-zlib

openharmony 鸿蒙 capi-oh-scan-scan-picturescanprogress

openharmony 鸿蒙 js-apis-screen-lock

openharmony 鸿蒙 capi-os-account-common-h

openharmony 鸿蒙 js-apis-screen-lock-sys

openharmony 鸿蒙 capi-oh-print-print-propertylist

openharmony 鸿蒙 capi-oh-scan

openharmony 鸿蒙 js-apis-system-device

openharmony 鸿蒙 errorcode-intelligentVoice

openharmony 鸿蒙 js-apis-request-sys

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/wLcx02Ps