Home
last modified time | relevance | path

Searched refs:tabContent (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_content_element.cpp31 if (tabContent) { in CreateRenderNode()
34 if (tabContent) { in CreateRenderNode()
35 tabContent->ChangeByContent(index); in CreateRenderNode()
40 if (tabContent) { in CreateRenderNode()
41 tabContent->PrepareContent(index); in CreateRenderNode()
44 tabContent->RegisterIndicatorCallback( in CreateRenderNode()
47 if (tabContent) { in CreateRenderNode()
112 if (!tabContent) { in Update()
116 contents_ = tabContent->GetChildren(); in Update()
117 auto controller = tabContent->GetController(); in Update()
[all …]
H A Drender_tab_content.cpp33 if (!tabContent || !tabContent->GetController()) { in Update()
59 isVertical_ = tabContent->IsVertical(); in Update()
115 if (tabContent) { in Initialize()
121 if (tabContent) { in Initialize()
127 if (tabContent) { in Initialize()
133 if (tabContent) { in Initialize()
267 auto tabContent = weak.Upgrade(); in ScrollContents() local
268 if (tabContent) { in ScrollContents()
275 auto tabContent = weak.Upgrade(); in ScrollContents() local
276 if (tabContent) { in ScrollContents()
[all …]
H A Dtab_controller.cpp63 auto tabContent = AceType::DynamicCast<TabContentElement>(contentElement_.Upgrade()); in SetIndex() local
64 if (tabContent) { in SetIndex()
65 tabContent->ChangeByBar(index); in SetIndex()
120 auto tabContent = AceType::DynamicCast<TabContentElement>(contentElement_.Upgrade()); in SetIndexByController() local
121 if (tabContent) { in SetIndexByController()
122 tabContent->ChangeByBar(index, blockEvent); in SetIndexByController()
130 auto tabContent = AceType::DynamicCast<TabContentElement>(contentElement_.Upgrade()); in ChangeDispatch() local
131 if (tabContent) { in ChangeDispatch()
132 tabContent->ChangeDispatch(index); in ChangeDispatch()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/tabs/
H A Dtab_content_proxy_element.cpp29 if (!tabContent) { in Update()
33 contents_ = tabContent->GetChildren(); in Update()
34 auto controller = tabContent->GetController(); in Update()
79 auto tabContent = AceType::DynamicCast<RenderTabContent>(renderNode_); in PerformBuild() local
80 if (!tabContent || !controller_) { in PerformBuild()
98 tabContent->FlushIndex(); in PerformBuild()
111 tabContent->AddChildContent(target, renderNode); in PerformBuild()
118 tabContent->UpdateDragPosition(newIndex_); in PerformBuild()
124 tabContent->ChangeScroll(newBarIndex_, fromController_); in PerformBuild()
153 if (!tabContent) { in OnUpdateElement()
[all …]
H A Dtabs_helper.h346 auto tabContent = FindTabContentElement(element); in UpdateRenderTabContentCount() local
347 auto tabContentProxyElement = AceType::DynamicCast<TabContentProxyElement>(tabContent); in UpdateRenderTabContentCount()
349 if (!tabContent || !tabContentProxyElement) { in UpdateRenderTabContentCount()
354 auto controller = tabContent->GetTabController(); in UpdateRenderTabContentCount()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dtabs_model_impl.cpp121 auto tabContent = tabsComponent->GetTabContentChild(); in SetIsVertical() local
122 if (tabContent) { in SetIsVertical()
123 tabContent->SetVertical(isVertical); in SetIsVertical()
131 auto tabContent = component->GetTabContentChild(); in SetScrollable() local
132 CHECK_NULL_VOID(tabContent); in SetScrollable()
133 tabContent->SetScrollable(scrollable); in SetScrollable()
140 auto tabContent = component->GetTabContentChild(); in SetAnimationDuration() local
141 CHECK_NULL_VOID(tabContent); in SetAnimationDuration()
142 tabContent->SetScrollDuration(duration); in SetAnimationDuration()
149 auto tabContent = component->GetTabContentChild(); in SetOnChange() local
[all …]
H A Dtab_content_model_impl.cpp147 RefPtr<V2::TabContentItemComponent>& tabContent, std::function<void()>&& builderFunc) in ProcessTabBarBuilderFunction() argument
150 tabContent->SetBarText("custom"); in ProcessTabBarBuilderFunction()
156 tabContent->SetBarBuilder(jsWrapperFunc); in ProcessTabBarBuilderFunction()
167 RefPtr<V2::TabContentItemComponent>& tabContent, const std::string& labelStr) in CreateTabBarLabelComponent() argument
169 tabContent->SetBarText(labelStr); in CreateTabBarLabelComponent()
174 RefPtr<V2::TabContentItemComponent>& tabContent, const std::optional<std::string>& textVal) in ProcessTabBarLabel() argument
177 tabContent->SetBarText(textStr); in ProcessTabBarLabel()
180 return CreateTabBarLabelComponent(tabContent, textStr); in ProcessTabBarLabel()
189 return ProcessTabBarLabel(tabContent, textVal); in ProcessTabBarTextIconPair()
193 tabContent->SetBarText(textStr); in ProcessTabBarTextIconPair()
[all …]
H A Dtab_content_model_impl.h49 RefPtr<V2::TabContentItemComponent>& tabContent, std::function<void()>&& builderFunc);
50 RefPtr<Component> ProcessTabBarTextIconPair(RefPtr<V2::TabContentItemComponent>& tabContent,
53 RefPtr<V2::TabContentItemComponent>& tabContent, const std::string& labelStr);
55 RefPtr<V2::TabContentItemComponent>& tabContent, const std::optional<std::string>& textVal);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkTabContent.ts46 getUINativeModule().tabContent.resetTabBar(node);
48 getUINativeModule().tabContent.setTabBar(this.value);
64 getUINativeModule().tabContent.resetTabContentWidth(node);
66 getUINativeModule().tabContent.setTabContentWidth(node, this.value);
82 getUINativeModule().tabContent.resetTabContentHeight(node);
84 getUINativeModule().tabContent.setTabContentHeight(node, this.value);
100 getUINativeModule().tabContent.resetTabContentSize(node);
102 getUINativeModule().tabContent.setTabContentSize(node, this.value.width, this.value.height);
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dui-js-component-tabs.md18 <tab-content class="tabContent">
38 .tabContent{
64 <tab-content class="tabContent">
65 <div class="tabContent">
68 <div class="tabContent" >
94 .tabContent{
119 <tab-content class="tabContent">
/ohos5.0/docs/en/application-dev/ui/
H A Dui-js-component-tabs.md19 <tab-content class="tabContent">
39 .tabContent{
65 <tab-content class="tabContent">
66 <div class="tabContent">
69 <div class="tabContent" >
95 .tabContent{
120 <tab-content class="tabContent">
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_content_model_ng.cpp116 auto tabContent = AceType::Claim(NG::ViewStackProcessor::GetInstance()->GetMainFrameNode()); in Pop() local
117 AddTabBarItem(tabContent, DEFAULT_NODE_SLOT, true); in Pop()
121 RefPtr<TabsNode> TabContentModelNG::FindTabsNode(const RefPtr<UINode>& tabContent) in FindTabsNode() argument
123 CHECK_NULL_RETURN(tabContent, nullptr); in FindTabsNode()
124 RefPtr<UINode> parent = tabContent->GetParent(); in FindTabsNode()
135 void TabContentModelNG::AddTabBarItem(const RefPtr<UINode>& tabContent, int32_t position, bool upda… in AddTabBarItem() argument
137 CHECK_NULL_VOID(tabContent); in AddTabBarItem()
138 auto tabContentId = tabContent->GetId(); in AddTabBarItem()
140 auto tabContentNode = AceType::DynamicCast<TabContentNode>(tabContent); in AddTabBarItem()
147 auto tabsNode = FindTabsNode(tabContent); in AddTabBarItem()
H A Dtab_content_model_ng.h54 … const RefPtr<UINode>& tabContent, int32_t position = DEFAULT_NODE_SLOT, bool update = false);
56 static RefPtr<TabsNode> FindTabsNode(const RefPtr<UINode>& tabContent);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-tabcontent.md746 ![tabContent](figures/tabContent1.gif)
814 ![tabContent](figures/tabContent2.gif)
1560 ![tabContent](figures/tabContent6.gif)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp1943 auto tabContent = GetCurrentFrameNode(index); in DoTabsPreloadItems() local
1944 if (!tabContent) { in DoTabsPreloadItems()
1947 if (!tabContent->GetChildren().empty()) { in DoTabsPreloadItems()
1950 auto tabContentPattern = tabContent->GetPattern<TabContentPattern>(); in DoTabsPreloadItems()
1956 for (const auto& child : tabContent->GetChildren()) { in DoTabsPreloadItems()
1959 if (contentConstraint.has_value() && tabContent->GetGeometryNode()) { in DoTabsPreloadItems()
1960 tabContent->GetGeometryNode()->SetParentLayoutConstraint(childConstraint); in DoTabsPreloadItems()
1961 FrameNode::ProcessOffscreenNode(tabContent); in DoTabsPreloadItems()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-tabcontent.md456 ![tabContent](figures/tabContent1.gif)
512 ![tabContent](figures/tabContent2.gif)
1250 ![tabContent](figures/tabContent6.gif)
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_api_impl_bridge.cpp4085 auto tabContent = panda::ObjectRef::New(vm); in RegisterTabContentAttributes() local
4086 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "setTabBar"), in RegisterTabContentAttributes()
4088 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetTabBar"), in RegisterTabContentAttributes()
4090 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "setTabContentWidth"), in RegisterTabContentAttributes()
4092 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "setTabContentHeight"), in RegisterTabContentAttributes()
4094 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "setTabContentSize"), in RegisterTabContentAttributes()
4096 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetTabContentWidth"), in RegisterTabContentAttributes()
4098 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetTabContentHeight"), in RegisterTabContentAttributes()
4100 tabContent->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetTabContentSize"), in RegisterTabContentAttributes()
4102 object->Set(vm, panda::StringRef::NewFromUtf8(vm, "tabContent"), tabContent); in RegisterTabContentAttributes()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js29076 getUINativeModule().tabContent.resetTabBar(node);
29078 getUINativeModule().tabContent.setTabBar(this.value);
29092 getUINativeModule().tabContent.resetTabContentWidth(node);
29095 getUINativeModule().tabContent.setTabContentWidth(node, this.value);
29109 getUINativeModule().tabContent.resetTabContentHeight(node);
29112 getUINativeModule().tabContent.setTabContentHeight(node, this.value);
29126 getUINativeModule().tabContent.resetTabContentSize(node);
29129 getUINativeModule().tabContent.setTabContentSize(node, this.value.width, this.value.height);