mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
add js memory tutorial (#2421)
This commit is contained in:
parent
16fbee01fe
commit
c6472f9662
23 changed files with 597 additions and 2 deletions
11
docs/tutorial/node/src/main_initial.js
Normal file
11
docs/tutorial/node/src/main_initial.js
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue