mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
doc(menu): hide private methods
This commit is contained in:
@ -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: [
|
||||||
|
* IonicModule.forRoot(MyApp,{
|
||||||
* menuType: 'push',
|
* menuType: 'push',
|
||||||
* platforms: {
|
* platforms: {
|
||||||
* ios: {
|
* ios: {
|
||||||
* menuType: 'overlay',
|
* 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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user