mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
docs(content): update content functions to private
This commit is contained in:
@ -279,18 +279,30 @@ export class Content extends Ion {
|
|||||||
return this._scrollTo.start(0, 0, 300, 0);
|
return this._scrollTo.start(0, 0, 300, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
getScrollTop(): number {
|
getScrollTop(): number {
|
||||||
return this.getNativeElement().scrollTop;
|
return this.getNativeElement().scrollTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
addCssClass(className: string) {
|
addCssClass(className: string) {
|
||||||
this.getNativeElement().classList.add(className);
|
this.getNativeElement().classList.add(className);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
removeCssClass(className: string) {
|
removeCssClass(className: string) {
|
||||||
this.getNativeElement().classList.remove(className);
|
this.getNativeElement().classList.remove(className);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
setScrollElementStyle(prop: string, val: any) {
|
setScrollElementStyle(prop: string, val: any) {
|
||||||
this.scrollElement.style[prop] = val;
|
this.scrollElement.style[prop] = val;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user