mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
Merge pull request #6017 from EvgenyVolkov/update_content.ts
docs(): update content.ts
This commit is contained in:
@ -243,7 +243,7 @@ export class Content extends Ion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scroll to the specified position.
|
* Scroll to the top of the content component.
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* @Page({
|
* @Page({
|
||||||
@ -261,7 +261,7 @@ export class Content extends Ion {
|
|||||||
* this.content = this.app.getComponent('my-content');
|
* this.content = this.app.getComponent('my-content');
|
||||||
* }
|
* }
|
||||||
* scrollTop() {
|
* scrollTop() {
|
||||||
* this.content.scrollTop();
|
* this.content.scrollToTop();
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
Reference in New Issue
Block a user