如何在 App Maker 中切换选项卡
How to switch between tabs in App Maker
我创建了一个选项卡小部件,它在第一个选项卡上包含一个 table 小部件。 Whenever a record in the table widget is selected, the focus should switch from the first tab to the second tab as this contains more detailed data regarding the record.我怎样才能实现这样的脚本?有没有类似
app.currentpage.tabs.selectedtab = ...
到 select 第二个选项卡,您可以使用此代码段:
// Setting selected tab index to 1 since indices are zero-based.
app.currentPage.descendants.MyTabsWidgetName.selectedTab = 1;
此代码可以放在 table 行的 onClick
事件处理程序中。
我创建了一个选项卡小部件,它在第一个选项卡上包含一个 table 小部件。 Whenever a record in the table widget is selected, the focus should switch from the first tab to the second tab as this contains more detailed data regarding the record.我怎样才能实现这样的脚本?有没有类似
app.currentpage.tabs.selectedtab = ...
到 select 第二个选项卡,您可以使用此代码段:
// Setting selected tab index to 1 since indices are zero-based.
app.currentPage.descendants.MyTabsWidgetName.selectedTab = 1;
此代码可以放在 table 行的 onClick
事件处理程序中。