feat(split-panel): split panel support for ion-nav and ion-menu (#10343)

* feat(split-panel): split panel support for ion-nav and ion-menu

Revert some changes

adds support split-panel support for tabs

Removes .orig

removes e2e.ts

Removes unneeded changes in menu.ts

improves stuff

* fix(split-panel): resize is called when menu wraps a ion-nav

* test(split-panel): improves split-panel/basic test

* feat(split-panel): ionChange is an ng2 @Output()

* fix(split-panel): fix tabs as side content

* fix(menu): forzedClose works as expected

* feat(split-panel): split-panel works with several menus

* chore(split-panel): renames to split-pane

* refactor(split-pane): splitPane can be injected

* fix(split-pane): it is a directive

* fix(slides): integration with split-panel

* Make gulp validate happy
This commit is contained in:
Manu MA
2017-03-03 20:13:07 +01:00
committed by GitHub
parent 66fcaa7a63
commit 9e4c3a6e3e
36 changed files with 1121 additions and 100 deletions

View File

@ -309,6 +309,23 @@ export class MenuController {
removeArrayItem(this._menus, menu);
}
/**
* @private
*/
_setActiveMenu(menu: Menu) {
assert(menu.enabled);
assert(this._menus.indexOf(menu) >= 0, 'menu is not registered');
// if this menu should be enabled
// then find all the other menus on this same side
// and automatically disable other same side menus
const side = menu.side;
this._menus
.filter(m => m.side === side && m !== menu)
.map(m => m.enable(false));
}
/**
* @private
*/