harmony 鸿蒙Sheet Transition (System API)

  • 2025-06-12
  • 浏览 (3)

Sheet Transition (System API)

You can bind a sheet to a component through the bindSheet attribute. You can also set the sheet to the preset or custom height for when the component is inserted.

NOTE

This feature is supported since API version 10. Updates will be marked with a superscript to indicate their earliest API version.

Route hopping is not supported.

This topic describes only the system APIs provided by the module. For details about its public APIs, see bindSheet.

SheetOptions

Optional attributes of the sheet. Inherits from BindOptions.

Name Type Mandatory Description
offset14+ Position Yes Bottom spacing, which is effective only when the sheet is a bottom sheet. When it is specified, the height detent cannot be set for the sheet.
Default value: 0 vp for both the x-axis and y-axis
System API: This is a system API.
System capability: SystemCapability.ArkUI.ArkUI.Full

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArcButton

harmony 鸿蒙ArcSlider

harmony 鸿蒙Chip

harmony 鸿蒙ChipGroup

harmony 鸿蒙ComposeListItem

harmony 鸿蒙ComposeTitleBar

harmony 鸿蒙advanced.Counter

harmony 鸿蒙Dialog Box (Dialog)

harmony 鸿蒙DialogV2

harmony 鸿蒙DownloadFileButton

0  赞