Skip to content

Commit 9672d80

Browse files
committed
docs: improved offScreenTabLimit demo
1 parent b29b570 commit 9672d80

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/ns-ui-widgets-category/tabs/properties/properties-page.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ function createContent(index) {
8787
stack.verticalAlignment = "middle";
8888
stack.addChild(label);
8989

90+
// Testing the offscreenTabLimit property
9091
stack.on("loaded", (args) => {
91-
console.log(`Loaded [${(args.object).getViewById("label").text}] - testing offscreenTabLimit property)`)
92+
console.log(`>>> Loaded [${(args.object).getViewById("label").text}]`);
93+
});
94+
95+
stack.on("unloaded", (args) => {
96+
console.log(`>>> Unloaded [${(args.object).getViewById("label").text}]`);
9297
});
9398

9499
return stack;

app/ns-ui-widgets-category/tabs/properties/properties-ts-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ function createContent(index: number) {
8282
stack.addChild(label);
8383

8484
stack.on("loaded", (args) => {
85-
console.log(`Loaded [${(<any>args.object).getViewById("label").text}]`)
85+
console.log(`Loaded [${(<any>args.object).getViewById("label").text}]`);
8686
})
8787

8888
stack.on("unloaded", (args) => {
89-
console.log(`UNLOADED [${(<any>args.object).getViewById("label").text}]`)
89+
console.log(`UNLOADED [${(<any>args.object).getViewById("label").text}]`);
9090
})
9191

9292
return stack;

0 commit comments

Comments
 (0)