From 0005e3416ed2f663f68c63c0b1ac1324895dc2b2 Mon Sep 17 00:00:00 2001 From: mhartington Date: Sat, 22 Oct 2016 11:47:19 -0400 Subject: [PATCH] doc(menu): hide private methods --- src/components/menu/menu.ts | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/menu/menu.ts b/src/components/menu/menu.ts index 49e9698cb2..865b2d1821 100644 --- a/src/components/menu/menu.ts +++ b/src/components/menu/menu.ts @@ -106,16 +106,18 @@ import { Content } from '../content/content'; * `push` for all modes, and then set the type to `overlay` for the `ios` mode. * * ```ts - * import { ionicBootstrap } from 'ionic-angular'; + * // in NgModules * - * ionicBootstrap(MyApp, customProviders, { - * menuType: 'push', - * platforms: { - * ios: { - * menuType: 'overlay', + * imports: [ + * IonicModule.forRoot(MyApp,{ + * menuType: 'push', + * platforms: { + * ios: { + * menuType: 'overlay', + * } * } - * } - * }); + * }) + * ], * ``` * * @@ -567,6 +569,9 @@ export class Menu { return this; } + /** + * @private + */ getNativeElement(): HTMLElement { return this._elementRef.nativeElement; } @@ -592,6 +597,9 @@ export class Menu { return this.backdrop.getNativeElement(); } + /** + * @private + */ width(): number { return this.getMenuElement().offsetWidth; } @@ -610,6 +618,9 @@ export class Menu { this._renderer.setElementClass(this._elementRef.nativeElement, className, add); } + /** + * @private + */ setElementAttribute(attributeName: string, value: string) { this._renderer.setElementAttribute(this._elementRef.nativeElement, attributeName, value); }