/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-nested-scrolling.md | 6 …ptions10对象说明)对象,该对象具有两个属性,分别为scrollForward和scrollBackward,每一个属性都为一个[NestedScrollMode](../reference… 25 // NestedScrollMode设置成SELF_ONLY时,Web网页滚动到页面边缘后,不与父组件联动,父组件仍无法滚动。 26 @State NestedScrollMode0: NestedScrollMode = NestedScrollMode.SELF_ONLY; 27 // NestedScrollMode设置成SELF_FIRST时,Web网页滚动到页面边缘后,父组件继续滚动。 28 @State NestedScrollMode1: NestedScrollMode = NestedScrollMode.SELF_FIRST; 29 // NestedScrollMode设置为PARENT_FIRST时,父组件先滚动,滚动至边缘后通知Web继续滚动。 30 @State NestedScrollMode2: NestedScrollMode = NestedScrollMode.PARENT_FIRST; 31 // NestedScrollMode设置为PARALLEL时,父组件与Web同时滚动。 32 @State NestedScrollMode3: NestedScrollMode = NestedScrollMode.PARALLEL; 33 @State NestedScrollModeF: NestedScrollMode = NestedScrollMode.SELF_FIRST; [all …]
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | web-nested-scrolling.md | 6 …butes: **scrollForward** and **scrollBackward**, both of which are [NestedScrollMode](../reference… 25 …// With NestedScrollMode set to SELF_ONLY, the parent component does not scroll when the component… 26 @State NestedScrollMode0: NestedScrollMode = NestedScrollMode.SELF_ONLY; 27 …// With NestedScrollMode set to SELF_FIRST, the component scrolls first, and when it hits the boun… 28 @State NestedScrollMode1: NestedScrollMode = NestedScrollMode.SELF_FIRST; 29 …// With NestedScrollMode set to PARENT_FIRST, the parent component scrolls first, and when it hits… 30 @State NestedScrollMode2: NestedScrollMode = NestedScrollMode.PARENT_FIRST; 31 …// With NestedScrollMode set to PARALLEL, the component and its parent component scroll at the sam… 32 @State NestedScrollMode3: NestedScrollMode = NestedScrollMode.PARALLEL; 33 @State NestedScrollModeF: NestedScrollMode = NestedScrollMode.SELF_FIRST; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable_properties.h | 43 enum class NestedScrollMode { enum 113 NestedScrollMode forward; 114 NestedScrollMode backward; 118 return forward != NestedScrollMode::SELF_ONLY || backward != NestedScrollMode::SELF_ONLY; in NeedParent() 123 …return forward ? this->forward != NestedScrollMode::SELF_ONLY : backward != NestedScrollMode::SELF… in NeedParent() 145 case NestedScrollMode::SELF_ONLY: in GetNestedScrollModeStr() 151 case NestedScrollMode::PARALLEL: in GetNestedScrollModeStr() 160 NestedScrollMode scrollUp; 161 NestedScrollMode scrollDown; 162 NestedScrollMode scrollLeft; [all …]
|
H A D | nestable_scroll_container.h | 160 .forward = NestedScrollMode::SELF_ONLY, 161 .backward = NestedScrollMode::SELF_ONLY,
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/ |
H A D | scrollable_test_ng.cpp | 54 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::P… in InitNestedScrolls() 75 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_ONLY, .backward = NestedScrollMode::… 111 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::P… 144 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::P… 172 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::P… 200 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::P… 227 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::P… 254 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_FIRST, .backward = NestedScrollMode:… 281 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_FIRST, .backward = NestedScrollMode:… 308 …scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_FIRST, .backward = NestedScrollMode:… [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.6.5/ |
H A D | changelogs-arkweb.md | 31 | scrollForward | NestedScrollMode | 可滚动组件往起始端滚动时的嵌套滚动选项。 | 32 | scrollBackward | NestedScrollMode | 可滚动组件往末尾端滚动时的嵌套滚动选项。 | 38 | scrollForward | NestedScrollMode | 可滚动组件往末尾端滚动时的嵌套滚动选项。 | 39 | scrollBackward | NestedScrollMode | 可滚动组件往起始端滚动时的嵌套滚动选项。 |
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.6.5/ |
H A D | changelogs-arkweb.md | 31 | scrollForward | NestedScrollMode | Nested scrolling options when the component scrolls backward.| 32 | scrollBackward | NestedScrollMode | Nested scrolling options when the component scrolls forward.| 38 | scrollForward | NestedScrollMode | Nested scrolling options when the component scrolls forward.| 39 | scrollBackward | NestedScrollMode | Nested scrolling options when the component scrolls backward.|
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_event_test_ng.cpp | 564 .forward = NestedScrollMode::SELF_FIRST, 565 .backward = NestedScrollMode::SELF_FIRST, 593 .forward = NestedScrollMode::SELF_FIRST, 623 .forward = NestedScrollMode::SELF_FIRST, 660 .forward = NestedScrollMode::SELF_FIRST, 826 .forward = NestedScrollMode::SELF_FIRST, 837 .forward = NestedScrollMode::SELF_ONLY, 838 .backward = NestedScrollMode::SELF_ONLY, 843 .forward = NestedScrollMode::SELF_FIRST, 844 .backward = NestedScrollMode::SELF_ONLY, [all …]
|
H A D | swiper_attr_test_ng.cpp | 883 .forward = NestedScrollMode::SELF_FIRST, 1255 .forward = NestedScrollMode::SELF_FIRST, 1256 .backward = NestedScrollMode::SELF_ONLY, 1268 .forward = NestedScrollMode::SELF_ONLY, 1269 .backward = NestedScrollMode::SELF_ONLY, 1285 .forward = NestedScrollMode::SELF_FIRST, 1286 .backward = NestedScrollMode::SELF_ONLY, 1304 .forward = NestedScrollMode::SELF_ONLY, 1305 .backward = NestedScrollMode::SELF_ONLY, 1313 .forward = NestedScrollMode::SELF_FIRST, [all …]
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/splitlayout/source/ |
H A D | splitlayout.ets | 74 scrollForward: NestedScrollMode.SELF_FIRST, 75 scrollBackward: NestedScrollMode.SELF_FIRST, 123 scrollForward: NestedScrollMode.SELF_FIRST, 124 scrollBackward: NestedScrollMode.SELF_FIRST, 179 scrollForward: NestedScrollMode.SELF_FIRST, 180 scrollBackward: NestedScrollMode.SELF_FIRST,
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-sheet-page.md | 52 scrollForward: NestedScrollMode.PARENT_FIRST, 54 scrollBackward: NestedScrollMode.SELF_FIRST, 80 scrollForward: NestedScrollMode.PARENT_FIRST, 81 scrollBackward: NestedScrollMode.SELF_FIRST,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/ |
H A D | refresh_pattern.cpp | 1159 if (parent && nestedScroll.forward == NestedScrollMode::PARENT_FIRST) { in HandleScroll() 1162 } else if (parent && nestedScroll.forward == NestedScrollMode::SELF_FIRST) { in HandleScroll() 1169 … if (!parent || ((Negative(offset) && (nestedScroll.forward == NestedScrollMode::SELF_ONLY || in HandleScroll() 1170 … nestedScroll.forward == NestedScrollMode::PARALLEL)) || in HandleScroll() 1171 … (Positive(offset) && (nestedScroll.backward == NestedScrollMode::SELF_ONLY || in HandleScroll() 1180 if (parent && ((Negative(offset) && nestedScroll.forward == NestedScrollMode::SELF_FIRST) || in HandleScroll() 1181 … (Positive(offset) && nestedScroll.backward == NestedScrollMode::SELF_FIRST))) { in HandleScroll() 1204 …(nestedScroll.forward != NestedScrollMode::PARALLEL || nestedScroll.backward != NestedScrollMode::… in OnScrollStartRecursive() 1214 if (parent && ((Negative(velocity) && nestedScroll.forward == NestedScrollMode::PARENT_FIRST) || in HandleScrollVelocity() 1215 … (Positive(velocity) && nestedScroll.backward == NestedScrollMode::PARENT_FIRST))) { in HandleScrollVelocity() [all …]
|
H A D | refresh_model_ng.cpp | 54 .forward = NestedScrollMode::PARENT_FIRST, in Create() 55 .backward = NestedScrollMode::SELF_FIRST, in Create() 71 .forward = NestedScrollMode::PARENT_FIRST, in CreateFrameNode() 72 .backward = NestedScrollMode::SELF_FIRST, in CreateFrameNode()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/refresh/ |
H A D | refresh_event_test_ng.cpp | 957 EXPECT_EQ(swiperNestedOption.forward, NestedScrollMode::PARENT_FIRST); 958 EXPECT_EQ(swiperNestedOption.backward, NestedScrollMode::SELF_FIRST); 1027 .forward = NestedScrollMode::SELF_FIRST, 1028 .backward = NestedScrollMode::SELF_FIRST, 1040 EXPECT_EQ(swiperNestedOption.forward, NestedScrollMode::PARENT_FIRST); 1041 EXPECT_EQ(swiperNestedOption.backward, NestedScrollMode::SELF_FIRST); 1043 EXPECT_EQ(refreshNestedOption.forward, NestedScrollMode::SELF_FIRST); 1115 .forward = NestedScrollMode::PARENT_FIRST, 1116 .backward = NestedScrollMode::PARENT_FIRST, 1158 .forward = NestedScrollMode::SELF_FIRST, [all …]
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/splitlayout/interfaces/ |
H A D | splitlayout.js | 161 scrollForward: NestedScrollMode.SELF_FIRST, 162 scrollBackward: NestedScrollMode.SELF_FIRST, 245 scrollForward: NestedScrollMode.SELF_FIRST, 246 scrollBackward: NestedScrollMode.SELF_FIRST, 323 scrollForward: NestedScrollMode.SELF_FIRST, 324 scrollBackward: NestedScrollMode.SELF_FIRST,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow.cpp | 349 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 350 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 360 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 361 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 367 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 368 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 372 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll() 373 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
|
H A D | js_scroll.cpp | 460 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 461 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 470 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 471 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 476 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 477 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 480 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll() 481 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
|
H A D | js_grid.cpp | 631 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 632 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 641 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 642 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 647 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 648 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 651 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll() 652 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
|
H A D | js_list.cpp | 458 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 459 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll() 468 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 469 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 474 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 475 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 478 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll() 479 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_web_ffi.cpp | 352 NestedScrollMode GetNestedScrollModeValue(int32_t value) in GetNestedScrollModeValue() 354 auto ret = NestedScrollMode::SELF_ONLY; in GetNestedScrollModeValue() 357 ret = NestedScrollMode::SELF_ONLY; in GetNestedScrollModeValue() 360 ret = NestedScrollMode::SELF_FIRST; in GetNestedScrollModeValue() 363 ret = NestedScrollMode::PARENT_FIRST; in GetNestedScrollModeValue() 366 ret = NestedScrollMode::PARALLEL; in GetNestedScrollModeValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | list_modifier.cpp | 204 .forward = static_cast<NestedScrollMode>(forward), in SetListNestedScroll() 205 .backward = static_cast<NestedScrollMode>(backward), in SetListNestedScroll() 217 .forward = NestedScrollMode::SELF_ONLY, in ResetListNestedScroll() 218 .backward = NestedScrollMode::SELF_ONLY, in ResetListNestedScroll()
|
H A D | grid_modifier.cpp | 300 .forward = static_cast<NestedScrollMode>(forward), in SetNestedScroll() 301 .backward = static_cast<NestedScrollMode>(backward), in SetNestedScroll() 313 .forward = NestedScrollMode::SELF_ONLY, in ResetNestedScroll() 314 .backward = NestedScrollMode::SELF_ONLY, in ResetNestedScroll()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-scrollbar.md | 220 scrollForward: NestedScrollMode.PARENT_FIRST, 221 scrollBackward: NestedScrollMode.SELF_FIRST
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-sheet-page.md | 52 scrollForward: NestedScrollMode.PARENT_FIRST, 54 scrollBackward: NestedScrollMode.SELF_FIRST, 80 scrollForward: NestedScrollMode.PARENT_FIRST, 81 scrollBackward: NestedScrollMode.SELF_FIRST,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_grid_bridge.cpp | 639 int32_t forward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll() 640 int32_t backward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll() 648 if (forward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 649 forward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 650 forward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll() 653 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll() 654 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll() 655 backward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll()
|