mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-25 11:11:46 +08:00
Merge pull request #7245 from cither1/onsenui-revision
Modified a method name.
This commit is contained in:
@@ -191,7 +191,7 @@ function onsTabbar(tabBar: TabbarView): void {
|
||||
keepPage: true
|
||||
};
|
||||
tabBar.setActiveTab(2, options);
|
||||
var activeTab: number = tabBar.getActiveTab();
|
||||
var activeTab: number = tabBar.getActiveTabIndex();
|
||||
tabBar.loadPage('myPage.html');
|
||||
tabBar.on('eventName', null);
|
||||
tabBar.once('eventName', null);
|
||||
|
||||
Vendored
+1
-1
@@ -634,7 +634,7 @@ interface TabbarView {
|
||||
* @return {Number} The index of the currently active tab
|
||||
* @description Returns tab index on current active tab. If active tab is not found, returns -1
|
||||
*/
|
||||
getActiveTab(): number;
|
||||
getActiveTabIndex(): number;
|
||||
/**
|
||||
* @param {String} url Page URL. Can be either an HTML document or an <code><ons-template></code>
|
||||
* @description Displays a new page without changing the active index
|
||||
|
||||
Reference in New Issue
Block a user