We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af38c83 commit 41904b7Copy full SHA for 41904b7
src/appShell.ts
@@ -232,6 +232,17 @@ export class AppShell extends BaseCustomWebComponentConstructorAppend {
232
code = decodeURIComponent(p.substring(5));
233
if (p.startsWith('style='))
234
style = decodeURIComponent(p.substring(6));
235
+ if (p.startsWith('demo=')) {
236
+ const d = decodeURIComponent(p.substring(5));
237
+ code = '';
238
+ if (d == '1') {
239
+ for (let i = 0; i < 300; i++) {
240
+ let l = 20 + (80 * (i % 10));
241
+ let t = 30 + (30 * Math.round(i / 10));
242
+ code += '<button style="width:80px;height:30px;position:absolute;left:' + l + 'px;top:' + t + 'px;">Button</button>';
243
+ }
244
245
246
}
247
248
await customElements.whenDefined('dock-spawn-ts');
0 commit comments