mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
docs(): hide methods not requiring docs
This commit is contained in:
@ -41,6 +41,10 @@ export class Button {
|
|||||||
private _colors: Array<string> = []; // primary/secondary
|
private _colors: Array<string> = []; // primary/secondary
|
||||||
private _icon: string = null; // left/right/only
|
private _icon: string = null; // left/right/only
|
||||||
private _disabled: boolean = false; // disabled
|
private _disabled: boolean = false; // disabled
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
isItem: boolean;
|
isItem: boolean;
|
||||||
|
|
||||||
@Input() color: string;
|
@Input() color: string;
|
||||||
|
@ -63,6 +63,9 @@ export class Checkbox {
|
|||||||
private _disabled: any = false;
|
private _disabled: any = false;
|
||||||
private _labelId: string;
|
private _labelId: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Input() value: string = '';
|
@Input() value: string = '';
|
||||||
|
@ -76,6 +76,9 @@ export class Content extends Ion {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
this.scrollElement.removeEventListener('scroll', this._onScroll);
|
this.scrollElement.removeEventListener('scroll', this._onScroll);
|
||||||
}
|
}
|
||||||
@ -151,6 +154,7 @@ export class Content extends Ion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @private
|
||||||
* Adds the specified touchmove handler to the content's scroll element.
|
* Adds the specified touchmove handler to the content's scroll element.
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
|
@ -458,6 +458,9 @@ let menuTypes:{ [name: string]: new(...args: any[]) => MenuType } = {};
|
|||||||
let menuIds:number = 0;
|
let menuIds:number = 0;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '.backdrop',
|
selector: '.backdrop',
|
||||||
host: {
|
host: {
|
||||||
|
@ -34,11 +34,34 @@ export class ViewController {
|
|||||||
private _pgRef: ElementRef;
|
private _pgRef: ElementRef;
|
||||||
protected _nav: NavController;
|
protected _nav: NavController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
instance: any = {};
|
instance: any = {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
state: string = '';
|
state: string = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
viewType: string = '';
|
viewType: string = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
onReady: any;
|
onReady: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
zIndex: number;
|
zIndex: number;
|
||||||
|
|
||||||
@Output() private _emitter: EventEmitter<any> = new EventEmitter();
|
@Output() private _emitter: EventEmitter<any> = new EventEmitter();
|
||||||
@ -49,6 +72,9 @@ export class ViewController {
|
|||||||
this._emitter.subscribe(callback);
|
this._emitter.subscribe(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
emit(data) {
|
emit(data) {
|
||||||
this._emitter.emit(data);
|
this._emitter.emit(data);
|
||||||
}
|
}
|
||||||
@ -62,18 +88,30 @@ export class ViewController {
|
|||||||
return this._nav.remove(this._nav.indexOf(this), 1, this._leavingOpts);
|
return this._nav.remove(this._nav.indexOf(this), 1, this._leavingOpts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
setNav(navCtrl) {
|
setNav(navCtrl) {
|
||||||
this._nav = navCtrl;
|
this._nav = navCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
getTransitionName(direction) {
|
getTransitionName(direction) {
|
||||||
return this._nav && this._nav.config.get('pageTransition');
|
return this._nav && this._nav.config.get('pageTransition');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
getNavParams() {
|
getNavParams() {
|
||||||
return new NavParams(this.data);
|
return new NavParams(this.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
setLeavingOpts(opts) {
|
setLeavingOpts(opts) {
|
||||||
this._leavingOpts = opts;
|
this._leavingOpts = opts;
|
||||||
}
|
}
|
||||||
@ -174,6 +212,9 @@ export class ViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
setZIndex(zIndex: number, renderer: Renderer) {
|
setZIndex(zIndex: number, renderer: Renderer) {
|
||||||
if (this._pgRef && zIndex !== this.zIndex) {
|
if (this._pgRef && zIndex !== this.zIndex) {
|
||||||
this.zIndex = zIndex;
|
this.zIndex = zIndex;
|
||||||
|
@ -287,18 +287,25 @@ export class Searchbar extends Ion {
|
|||||||
* @private
|
* @private
|
||||||
* Write a new value to the element.
|
* Write a new value to the element.
|
||||||
*/
|
*/
|
||||||
public writeValue(value: any) {
|
writeValue(value: any) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public onChange = (_:any) => {};
|
/**
|
||||||
public onTouched = () => {};
|
* @private
|
||||||
|
*/
|
||||||
|
onChange = (_:any) => {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
onTouched = () => {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* Set the function to be called when the control receives a change event.
|
* Set the function to be called when the control receives a change event.
|
||||||
*/
|
*/
|
||||||
public registerOnChange(fn:(_:any) => {}):void {
|
registerOnChange(fn:(_:any) => {}):void {
|
||||||
this.onChange = fn;
|
this.onChange = fn;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,7 +313,7 @@ export class Searchbar extends Ion {
|
|||||||
* @private
|
* @private
|
||||||
* Set the function to be called when the control receives a touch event.
|
* Set the function to be called when the control receives a touch event.
|
||||||
*/
|
*/
|
||||||
public registerOnTouched(fn:() => {}):void {
|
registerOnTouched(fn:() => {}):void {
|
||||||
this.onTouched = fn;
|
this.onTouched = fn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -138,8 +138,6 @@ export class SegmentButton {
|
|||||||
})
|
})
|
||||||
export class Segment {
|
export class Segment {
|
||||||
value: string;
|
value: string;
|
||||||
onChange = (_) => {};
|
|
||||||
onTouched = (_) => {};
|
|
||||||
|
|
||||||
@Output() change: EventEmitter<SegmentButton> = new EventEmitter();
|
@Output() change: EventEmitter<SegmentButton> = new EventEmitter();
|
||||||
|
|
||||||
@ -183,6 +181,14 @@ export class Segment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
onChange = (_) => {};
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
onTouched = (_) => {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
@ -102,6 +102,9 @@ export class Tab extends NavController {
|
|||||||
private _loaded: boolean;
|
private _loaded: boolean;
|
||||||
private _loadTimer: any;
|
private _loadTimer: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
btn: TabButton;
|
btn: TabButton;
|
||||||
|
|
||||||
@Input() root: Type;
|
@Input() root: Type;
|
||||||
|
@ -71,7 +71,14 @@ export class Tabs extends Ion {
|
|||||||
private _onReady = null;
|
private _onReady = null;
|
||||||
private _useHighlight: boolean;
|
private _useHighlight: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
navbarContainerRef: ViewContainerRef;
|
navbarContainerRef: ViewContainerRef;
|
||||||
subPages: boolean;
|
subPages: boolean;
|
||||||
|
|
||||||
|
@ -96,7 +96,11 @@ import {isObject, isDefined, isFunction, isArray} from '../util/util';
|
|||||||
export class Config {
|
export class Config {
|
||||||
private _c: any = {};
|
private _c: any = {};
|
||||||
private _s: any = {};
|
private _s: any = {};
|
||||||
public platform: Platform;
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
platform: Platform;
|
||||||
|
|
||||||
constructor(config?) {
|
constructor(config?) {
|
||||||
this._s = config && isObject(config) && !isArray(config) ? config : {};
|
this._s = config && isObject(config) && !isArray(config) ? config : {};
|
||||||
@ -281,6 +285,13 @@ export class Config {
|
|||||||
return this._c[key];
|
return this._c[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name getBoolean
|
||||||
|
* @description
|
||||||
|
* Same as `get()`, however always returns a boolean value.
|
||||||
|
*
|
||||||
|
* @param {String} [key] - the key for the config value
|
||||||
|
*/
|
||||||
getBoolean(key: string): boolean {
|
getBoolean(key: string): boolean {
|
||||||
let val = this.get(key);
|
let val = this.get(key);
|
||||||
return (val || val === 'true') ? true : false;
|
return (val || val === 'true') ? true : false;
|
||||||
|
@ -35,7 +35,11 @@ export class Platform {
|
|||||||
private _readyResolve: any;
|
private _readyResolve: any;
|
||||||
private _engineReady: any;
|
private _engineReady: any;
|
||||||
private _resizeTimer: any;
|
private _resizeTimer: any;
|
||||||
public platformOverride: string;
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
platformOverride: string;
|
||||||
|
|
||||||
constructor(platforms=[]) {
|
constructor(platforms=[]) {
|
||||||
this._platforms = platforms;
|
this._platforms = platforms;
|
||||||
|
Reference in New Issue
Block a user