mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
commit
ec3c744ce7
41
api/@internal/component/ets/scroll.d.ts
vendored
41
api/@internal/component/ets/scroll.d.ts
vendored
@ -282,6 +282,36 @@ declare interface ScrollAnimationOptions {
|
||||
canOverScroll?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* OffsetOptions info.
|
||||
*
|
||||
* @interface OffsetOptions
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
declare interface OffsetOptions {
|
||||
/**
|
||||
* The X-axis offset.
|
||||
*
|
||||
* @type { ?Dimension }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
xOffset?: Dimension;
|
||||
|
||||
/**
|
||||
* The y-axis offset.
|
||||
*
|
||||
* @type { ?Dimension }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
yOffset?: Dimension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Scroller
|
||||
*
|
||||
@ -1236,6 +1266,17 @@ declare class ScrollAttribute extends ScrollableCommonMethod<ScrollAttribute> {
|
||||
* @since 11
|
||||
*/
|
||||
enablePaging(value: boolean): ScrollAttribute;
|
||||
|
||||
/**
|
||||
* Called to setting the initial offset
|
||||
*
|
||||
* @param { OffsetOptions } value - options for scroll initial offset.
|
||||
* @returns { ScrollAttribute } the attribute of the scroll.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
initialOffset(value: OffsetOptions): ScrollAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user