From 28ec86e36307c4cd281d810656b62d4dbe789cc2 Mon Sep 17 00:00:00 2001 From: AlexanderMoiseev Date: Thu, 14 Sep 2023 10:22:25 +0400 Subject: [PATCH] set selected index by default --- JSDemos/Demos/Tabs/Overview/Angular/app/app.component.html | 3 +++ JSDemos/Demos/Tabs/Overview/React/App.js | 3 +++ JSDemos/Demos/Tabs/Overview/Vue/App.vue | 5 ++++- JSDemos/Demos/Tabs/Overview/jQuery/index.js | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/JSDemos/Demos/Tabs/Overview/Angular/app/app.component.html b/JSDemos/Demos/Tabs/Overview/Angular/app/app.component.html index 3c222e8734f..bea0d3080b1 100644 --- a/JSDemos/Demos/Tabs/Overview/Angular/app/app.component.html +++ b/JSDemos/Demos/Tabs/Overview/Angular/app/app.component.html @@ -4,6 +4,7 @@ { showNavButtons={showNavigation} orientation={orientation} stylingMode={stylingMode} + selectedIndex={0} />
@@ -77,6 +78,7 @@ const App = () => { orientation={orientation} stylingMode={stylingMode} iconPosition={iconPosition} + selectedIndex={0} />
@@ -87,6 +89,7 @@ const App = () => { orientation={orientation} stylingMode={stylingMode} iconPosition={iconPosition} + selectedIndex={0} />
diff --git a/JSDemos/Demos/Tabs/Overview/Vue/App.vue b/JSDemos/Demos/Tabs/Overview/Vue/App.vue index 4641291d45c..61a85ee9b07 100644 --- a/JSDemos/Demos/Tabs/Overview/Vue/App.vue +++ b/JSDemos/Demos/Tabs/Overview/Vue/App.vue @@ -4,6 +4,7 @@
{ const tab1 = $('#withText').dxTabs({ showNavButtons: false, dataSource: tabsText, + selectedIndex: 0, }).dxTabs('instance'); const tab2 = $('#withIconAndText').dxTabs({ showNavButtons: false, dataSource: tabsIconAndText, iconPosition: iconPositions[0], + selectedIndex: 0, }).dxTabs('instance'); const tab3 = $('#withIcon').dxTabs({ showNavButtons: false, dataSource: tabsIcon, + selectedIndex: 0, }).dxTabs('instance'); $('#orientation').dxSelectBox({