doc(menu): hide private methods

This commit is contained in:
mhartington
2016-10-22 11:47:19 -04:00
parent f69e981958
commit 0005e3416e

View File

@ -106,16 +106,18 @@ import { Content } from '../content/content';
* `push` for all modes, and then set the type to `overlay` for the `ios` mode. * `push` for all modes, and then set the type to `overlay` for the `ios` mode.
* *
* ```ts * ```ts
* import { ionicBootstrap } from 'ionic-angular'; * // in NgModules
* *
* ionicBootstrap(MyApp, customProviders, { * imports: [
* menuType: 'push', * IonicModule.forRoot(MyApp,{
* platforms: { * menuType: 'push',
* ios: { * platforms: {
* menuType: 'overlay', * ios: {
* menuType: 'overlay',
* }
* } * }
* } * })
* }); * ],
* ``` * ```
* *
* *
@ -567,6 +569,9 @@ export class Menu {
return this; return this;
} }
/**
* @private
*/
getNativeElement(): HTMLElement { getNativeElement(): HTMLElement {
return this._elementRef.nativeElement; return this._elementRef.nativeElement;
} }
@ -592,6 +597,9 @@ export class Menu {
return this.backdrop.getNativeElement(); return this.backdrop.getNativeElement();
} }
/**
* @private
*/
width(): number { width(): number {
return this.getMenuElement().offsetWidth; return this.getMenuElement().offsetWidth;
} }
@ -610,6 +618,9 @@ export class Menu {
this._renderer.setElementClass(this._elementRef.nativeElement, className, add); this._renderer.setElementClass(this._elementRef.nativeElement, className, add);
} }
/**
* @private
*/
setElementAttribute(attributeName: string, value: string) { setElementAttribute(attributeName: string, value: string) {
this._renderer.setElementAttribute(this._elementRef.nativeElement, attributeName, value); this._renderer.setElementAttribute(this._elementRef.nativeElement, attributeName, value);
} }