mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Consolidate language tutorials (#5037)
All the language tutorials are merged into the Slint reference as "quick starts".
This commit is contained in:
parent
5389367895
commit
ab9d7f342b
78 changed files with 632 additions and 1135 deletions
12
docs/reference/src/quickstart/main_initial.js
Normal file
12
docs/reference/src/quickstart/main_initial.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
// ANCHOR: main
|
||||
// main.js
|
||||
import * as slint from "slint-ui";
|
||||
|
||||
let ui = slint.loadFile("./ui/appwindow.slint");
|
||||
let mainWindow = new ui.MainWindow();
|
||||
await mainWindow.run();
|
||||
|
||||
// ANCHOR_END: main
|
Loading…
Add table
Add a link
Reference in a new issue