mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
refactor(framework-delegate): wrap user element with ion-page for modal and nav
This commit is contained in:
@ -24,6 +24,14 @@ export function isStringOrNumber(v: any): v is (string | number) { return isStri
|
||||
|
||||
export function isBlank(val: any): val is null { return val === undefined || val === null; }
|
||||
|
||||
export function isElementNav(element: HTMLElement) {
|
||||
return element.tagName.toUpperCase() === 'ION-NAV';
|
||||
}
|
||||
|
||||
export function isElementModal(element: HTMLElement) {
|
||||
return element.classList.contains('modal-wrapper');
|
||||
}
|
||||
|
||||
/** @hidden */
|
||||
export function isCheckedProperty(a: any, b: any): boolean {
|
||||
if (a === undefined || a === null || a === '') {
|
||||
|
Reference in New Issue
Block a user