add js memory tutorial (#2421)

This commit is contained in:
Florian Blasius 2023-03-28 12:10:47 +00:00 committed by GitHub
parent 16fbee01fe
commit c6472f9662
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 597 additions and 2 deletions

View file

@ -0,0 +1,11 @@
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
// ANCHOR: main
// main.js
require("slint-ui");
let ui = require("./memory.slint");
let mainWindow = new ui.MainWindow();
mainWindow.run();
// ANCHOR_END: main