refactor(framework-delegate): wrap user element with ion-page for modal and nav

This commit is contained in:
Dan Bucholtz
2018-01-04 13:01:31 -06:00
parent ebfb54ff21
commit e64944d6de
6 changed files with 62 additions and 34 deletions

View File

@ -7,4 +7,12 @@ export function getOrAppendElement(tagName: string): Element {
const tmp = document.createElement(tagName);
document.body.appendChild(tmp);
return tmp;
}
}
export function isElementNav(element: HTMLElement) {
return element.tagName.toUpperCase() === 'ION-NAV';
}
export function isElementModal(element: HTMLElement) {
return element.classList.contains('modal-wrapper');
}