Skip to main content
Version: v2

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​

PropertiesDescriptionRequiredType
hShortcut card heightYESnumber

Code example​

import { setAppWidgetSize } from '@zos/ui'

setAppWidgetSize({ h: 100 })