/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/ |
H A D | changelogs-arkui.md | 193 …ScrollBegin事件更名为onScrollFrameBegin事件,onScrollBegin事件中dx和dy参数分别表示X轴和Y轴方向滚动偏移量,更变为onScrollFrameBegin… 197 onScrollBegin事件不能再使用,需要使用onScrollFrameBegin事件。 203 …: number, dy: number) => { dxRemain: number, dyRemain: number }) | onScrollFrameBegin(event: (offs… 205 onScrollFrameBegin事件说明参考API接口文档: 211 …ScrollBegin改成使用onScrollFrameBegin事件,onScrollBegin事件的dx/dy参数改成onScrollFrameBegin事件的offset参数。原本需要更滚动… 271 改成onScrollFrameBegin事件参考代码如下: 310 .onScrollFrameBegin((offset: number, state: ScrollState) => {
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.3/ |
H A D | changelogs-arkui.md | 196 …onScrollFrameBegin**. In the **onScrollBegin** event, the amount to scroll by is indicated by the … 200 The **onScrollBegin** event is deprecated and must be replaced with the **onScrollFrameBegin** even… 206 …: number, dy: number) => { dxRemain: number, dyRemain: number }) | onScrollFrameBegin(event: (offs… 208 For details about the **onScrollFrameBegin** event, see the following: 214 …he event from **onScrollBegin** to **onScrollFrameBegin**, and use the **offset** parameter in **o… 274 Example of using the **onScrollFrameBegin** event: 313 .onScrollFrameBegin((offset: number, state: ScrollState) => {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable_event_hub.h | 59 void SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) in SetOnScrollFrameBegin() argument 61 onScrollFrameBeginEvent_ = std::move(onScrollFrameBegin); in SetOnScrollFrameBegin()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.2/ |
H A D | changelogs-arkui.md | 36 2、API version 9及以下使用到这个枚举值的接口有List组件的onScroll事件、onScrollFrameBegin事件、Scroll组件的onScrollFrameBegin事件,…
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/ |
H A D | scrollable_event_test.cpp | 368 auto onScrollFrameBegin = [&isOnScrollFrameBeginCalled](Dimension, ScrollState) { in __anoned346d080702() variable 377 ScrollableModelNG::SetOnScrollFrameBegin(std::move(onScrollFrameBegin)); 392 ScrollableModelNG::SetOnScrollFrameBegin(AceType::RawPtr(node_), std::move(onScrollFrameBegin));
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-scroll.md | 246 ### onScrollFrameBegin<sup>9+</sup> 248 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number; }) 254 若通过onScrollFrameBegin事件和scrollBy方法实现容器嵌套滚动,需设置子滚动节点的EdgeEffect为None。如Scroll嵌套List滚动时,List组件的edgeEff… 436 > 若通过onScrollFrameBegin事件和scrollBy方法实现容器嵌套滚动,需设置子滚动节点的EdgeEffect为None。如Scroll嵌套List滚动时,List组件的edge… 918 该示例使用onScrollFrameBegin事件实现了内层List组件和外层Scroll组件的嵌套滚动。 967 .onScrollFrameBegin((offset: number) => { 1057 该示例使用enableScrollInteraction属性和onScrollFrameBegin事件实现了父组件向子组件传递滚动。 1117 .onScrollFrameBegin((offset: number, state: ScrollState) => {
|
H A D | ts-basic-components-scrollbar.md | 55 > 设置嵌套滚动模式为PARALLEL时,父子组件同时滚动,需要开发者在onScrollFrameBegin中按照所需逻辑,自行设置父子组件滚动顺序。
|
H A D | ts-container-grid.md | 682 ### onScrollFrameBegin<sup>10+</sup> 684 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }) 1008 nestedScroll和onScrollFrameBegin的使用。 1132 .onScrollFrameBegin((offset: number, state: ScrollState) => {
|
H A D | ts-container-waterflow.md | 451 ### onScrollFrameBegin<sup>10+</sup> 453 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number; }) 720 .onScrollFrameBegin((offset: number, state: ScrollState) => {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_model_ng.h | 60 void SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) override; 122 …tic void SetOnScrollFrameBegin(FrameNode* frameNode, OnScrollFrameBeginEvent&& onScrollFrameBegin);
|
H A D | list_model.h | 69 virtual void SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) = 0;
|
H A D | list_model_ng.cpp | 294 void ListModelNG::SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) in SetOnScrollFrameBegin() argument 300 eventHub->SetOnScrollFrameBegin(std::move(onScrollFrameBegin)); in SetOnScrollFrameBegin() 748 …tModelNG::SetOnScrollFrameBegin(FrameNode* frameNode, OnScrollFrameBeginEvent&& onScrollFrameBegin) in SetOnScrollFrameBegin() argument 753 eventHub->SetOnScrollFrameBegin(std::move(onScrollFrameBegin)); in SetOnScrollFrameBegin()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_event_hub.h | 278 void SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) in SetOnScrollFrameBegin() argument 280 onScrollFrameBeginEvent_ = std::move(onScrollFrameBegin); in SetOnScrollFrameBegin()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | list_model_impl.h | 61 void SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) override;
|
H A D | grid_model_impl.h | 65 std::function<ScrollFrameResult(Dimension, ScrollState)>&& onScrollFrameBegin) override {}; in SetOnScrollFrameBegin() argument
|
H A D | list_model_impl.cpp | 157 void ListModelImpl::SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) in SetOnScrollFrameBegin() argument
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_model.h | 79 std::function<ScrollFrameResult(Dimension, ScrollState)>&& onScrollFrameBegin) = 0;
|
H A D | grid_model_ng.h | 67 void SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) override;
|
H A D | grid_model_ng.cpp | 320 void GridModelNG::SetOnScrollFrameBegin(OnScrollFrameBeginEvent&& onScrollFrameBegin) in SetOnScrollFrameBegin() argument 326 eventHub->SetOnScrollFrameBegin(std::move(onScrollFrameBegin)); in SetOnScrollFrameBegin()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_scroll_modifier.cpp | 698 …auto onScrollFrameBegin = [nodeId, node, extraParam](const Dimension& offset, const ScrollState& s… in SetOnScrollFrameBegin() local 711 ScrollModelNG::SetOnScrollFrameBegin(frameNode, std::move(onScrollFrameBegin)); in SetOnScrollFrameBegin() 1033 auto onScrollFrameBegin = reinterpret_cast<OnScrollFrameBeginEvent*>(callback); in SetOnScrollFrameBeginCallBack() local 1034 ScrollModelNG::SetOnScrollFrameBegin(frameNode, std::move(*onScrollFrameBegin)); in SetOnScrollFrameBeginCallBack()
|
H A D | node_list_modifier.cpp | 772 auto onScrollFrameBegin = [nodeId, node, extraParam]( in SetOnListScrollFrameBegin() local 785 ListModelNG::SetOnScrollFrameBegin(frameNode, std::move(onScrollFrameBegin)); in SetOnListScrollFrameBegin() 1009 auto onScrollFrameBegin = reinterpret_cast<OnScrollFrameBeginEvent*>(extraParam); in SetOnListScrollFrameBeginCallBack() local 1010 ListModelNG::SetOnScrollFrameBegin(frameNode, std::move(*onScrollFrameBegin)); in SetOnListScrollFrameBeginCallBack()
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-arkui-animation-interactive-event.md | 21 可以通过onScrollFrameBegin事件和scrollBy方法实现容器嵌套滚动。
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_scroll.cpp | 173 …auto onScrollFrameBegin = [execCtx = args.GetExecutionContext(), func = JSRef<JSFunc>::Cast(args[0… in OnScrollFrameBeginCallback() local 194 ScrollModel::GetInstance()->SetOnScrollFrameBegin(std::move(onScrollFrameBegin)); in OnScrollFrameBeginCallback()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-scroll.md | 242 ### onScrollFrameBegin<sup>9+</sup> 244 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number; }) 250 If the **onScrollFrameBegin** event and **scrollBy** method are used to implement nested scrolling,… 432 > If the **onScrollFrameBegin** event and **scrollBy** method are used to implement nested scrolli… 915 This example uses the **onScrollFrameBegin** event to achieve nested scrolling between an inner **L… 964 .onScrollFrameBegin((offset: number) => { 1054 …ild component using the **enableScrollInteraction** attribute and the **onScrollFrameBegin** event. 1114 .onScrollFrameBegin((offset: number, state: ScrollState) => {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkWaterFlow.ts | 368 …onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number; }): this…
|