setAppWidgetSize()
Start from API_LEVEL
2.0
. Please refer to API_LEVEL.
Set the size of the Shortcut cards, currently only height adjustment is supported.
Type
(option: Option) => undefined
Parameters
Option: object
Properties | Description | Required | Type |
---|---|---|---|
h | Shortcut card height | YES | number |
Code example
import { setAppWidgetSize } from '@zos/ui'
setAppWidgetSize({ h: 100 })