Skip to content

Commit c750847

Browse files
committed
feat(loading): add setContent function
1 parent 0579bba commit c750847

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/loading/loading.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ export class Loading extends ViewController {
3636
return this._nav && this._nav.config.get(key);
3737
}
3838

39+
/**
40+
* @param {string} content loading message content
41+
*/
42+
setContent(content: string) {
43+
this.data.content = content;
44+
}
45+
46+
3947
/**
4048
* Present the loading instance.
4149
*

src/components/nav/view-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export class ViewController {
7979
didUnload: EventEmitter<any>;
8080

8181
/**
82-
* @private
82+
* @protected
8383
*/
84-
data: any;
84+
protected data: any;
8585

8686
/**
8787
* @private

0 commit comments

Comments
 (0)