Skip to main content
Version: v3+

PAGE_SCROLLBAR

Start from API_LEVEL 3.0. Please refer to API_LEVEL

Page Scrollbar.

Create UI widget

import { createWidget, widget } from '@zos/ui'

const scrollBar = createWidget(widget.PAGE_SCROLLBAR, Param)

Param: object

PropertiesDescriptionRequiredType
targetThe VIEW_CONTAINER widget that needs to be bound is the whole page scroll bar by default, and the VIEW_CONTAINER scroll bar is passed inNOobject

Code example

import { createWidget, widget } from '@zos/ui'

const scrollBar = createWidget(widget.PAGE_SCROLLBAR)

Additional Examples

Example 1

import { createWidget, prop, widget } from '@zos/ui'

const vc0 = createWidget(widget.VIEW_CONTAINER, {
x: 0,
y: 0,
w: 466,
h: 466,
})

const scrollVer = createWidget(widget.PAGE_SCROLLBAR, {})
scrollVer.setProperty(prop.TARGET, vc0)