/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-atomicservice-AtomicServiceTabs.md | 114 type OnContentWillChangeCallback = (currentIndex: number, comingIndex: number) => boolean 123 | comingIndex | number | 是 | 即将切换的页签索引。 | 137 @State comingIndex: number = 0; 138 …onContentWillChangeCallBack: OnContentWillChangeCallback = (currentIndex: number, comingIndex: nu… 140 this.comingIndex = comingIndex; 189 Text("comingIndex = " + this.comingIndex + ", currentIndex = " + this.currentIndex)
|
H A D | ts-container-tabs.md | 551 onContentWillChange(handler: (currentIndex: number, comingIndex: number) => boolean) 576 | comingIndex | number | 是 | 将要显示的新页面的index索引。 | 1480 .onContentWillChange((currentIndex, comingIndex) => { 1481 if (comingIndex == 2) {
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-atomicservice-AtomicServiceTabs.md | 114 type OnContentWillChangeCallback = (currentIndex: number, comingIndex: number) => boolean 123 | comingIndex | number | Yes| Index of the tab to be switched to.| 137 @State comingIndex: number = 0; 138 …onContentWillChangeCallBack: OnContentWillChangeCallback = (currentIndex: number, comingIndex: nu… 140 this.comingIndex = comingIndex; 189 Text("comingIndex = " + this.comingIndex + ", currentIndex = " + this.currentIndex)
|
H A D | ts-container-tabs.md | 551 onContentWillChange(handler: (currentIndex: number, comingIndex: number) => boolean) 576 | comingIndex | number | Yes | Index of the new tab to be displayed. | 1478 .onContentWillChange((currentIndex, comingIndex) => { 1479 if (comingIndex == 2) {
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-navigation-tabs.md | 346 .onContentWillChange((currentIndex, comingIndex) => { 347 if (comingIndex == 2) {
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/atomicservicetabs/source/ |
H A D | atomicservicetabs.ets | 92 export type OnContentWillChangeCallback = (currentIndex: number, comingIndex: number) => boolean;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_pattern.h | 452 bool ContentWillChange(int32_t comingIndex); 453 bool ContentWillChange(int32_t currentIndex, int32_t comingIndex);
|
H A D | tab_bar_pattern.cpp | 3173 bool TabBarPattern::ContentWillChange(int32_t comingIndex) in ContentWillChange() argument 3178 return ContentWillChange(currentIndex, comingIndex); in ContentWillChange() 3181 bool TabBarPattern::ContentWillChange(int32_t currentIndex, int32_t comingIndex) in ContentWillChange() argument 3189 if (tabsPattern->GetInterceptStatus() && currentIndex != comingIndex) { in ContentWillChange() 3190 auto ret = tabsPattern->OnContentWillChange(currentIndex, comingIndex); in ContentWillChange()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.cpp | 5385 bool SwiperPattern::ContentWillChange(int32_t comingIndex) in ContentWillChange() argument 5387 return ContentWillChange(GetCurrentIndex(), comingIndex); in ContentWillChange() 5390 bool SwiperPattern::ContentWillChange(int32_t currentIndex, int32_t comingIndex) in ContentWillChange() argument 5403 currentIndex != comingIndex) { in ContentWillChange() 5405 auto ret = tabsPattern->OnContentWillChange(currentIndex, comingIndex); in ContentWillChange() 5427 int32_t comingIndex = currentIndex; in CheckSwiperPanEvent() local 5433 comingIndex = comingIndex < 1 ? 0 : comingIndex - 1; in CheckSwiperPanEvent() 5435 … comingIndex = comingIndex > TotalCount() - INDEX_DIFF_TWO ? TotalCount() - 1 : comingIndex + 1; in CheckSwiperPanEvent() 5438 auto iter = indexCanChangeMap_.find(comingIndex); in CheckSwiperPanEvent() 5442 bool ret = ContentWillChange(currentIndex, comingIndex); in CheckSwiperPanEvent() [all …]
|
H A D | swiper_pattern.h | 498 bool ContentWillChange(int32_t comingIndex); 499 bool ContentWillChange(int32_t currentIndex, int32_t comingIndex);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_tabs.cpp | 636 (int32_t currentIndex, int32_t comingIndex) -> bool { in SetOnContentWillChange() argument 639 auto ret = func->Execute(currentIndex, comingIndex); in SetOnContentWillChange()
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-navigation-tabs.md | 344 .onContentWillChange((currentIndex, comingIndex) => { 345 if (comingIndex == 2) {
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/ |
H A D | tabs_event_test_ng.cpp | 625 auto callback = [](int32_t currentIndex, int32_t comingIndex) -> bool { return true; }; in __anon655b7e4a0b02() argument
|