Home
last modified time | relevance | path

Searched refs:comingIndex (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dohos-atomicservice-AtomicServiceTabs.md114 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 Dts-container-tabs.md551 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 Dohos-atomicservice-AtomicServiceTabs.md114 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 Dts-container-tabs.md551 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 Darkts-navigation-tabs.md346 .onContentWillChange((currentIndex, comingIndex) => {
347 if (comingIndex == 2) {
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/atomicservicetabs/source/
H A Datomicservicetabs.ets92 export type OnContentWillChangeCallback = (currentIndex: number, comingIndex: number) => boolean;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_pattern.h452 bool ContentWillChange(int32_t comingIndex);
453 bool ContentWillChange(int32_t currentIndex, int32_t comingIndex);
H A Dtab_bar_pattern.cpp3173 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 Dswiper_pattern.cpp5385 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()
5435comingIndex = 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 Dswiper_pattern.h498 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 Djs_tabs.cpp636 (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 Darkts-navigation-tabs.md344 .onContentWillChange((currentIndex, comingIndex) => {
345 if (comingIndex == 2) {
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtabs_event_test_ng.cpp625 auto callback = [](int32_t currentIndex, int32_t comingIndex) -> bool { return true; }; in __anon655b7e4a0b02() argument