mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +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.
|
||||
*
|
||||
* ```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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user