From 9735bd1b0192cbbc0ce48808d422b7ac726a9211 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 24 Nov 2021 06:58:09 +1100 Subject: [PATCH] [website] v2.0.0-beta.21 --- website/docs/reference/options.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/website/docs/reference/options.mdx b/website/docs/reference/options.mdx index ebbd2665..1c92205a 100644 --- a/website/docs/reference/options.mdx +++ b/website/docs/reference/options.mdx @@ -36,6 +36,7 @@ func main() { OnStartup: app.startup, OnDomReady: app.domready, OnShutdown: app.shutdown, + WindowStartState: options.Maximised, Bind: []interface{}{ app, }, @@ -258,6 +259,20 @@ Type: func(ctx context.Context) This callback is called after the frontend has been destroyed, just before the application terminates. It is given the application context. +### WindowStartState + +Name: WindowStartState + +Type: options.WindowStartState + +Defines how the window should present itself at startup. + +| Value | Win | Mac | +| --------------- | --- | --- | +| Fullscreen | ✅ | ✅ | +| Maximised | ✅ | ✅ | +| Minimised | ✅ | | + ### Bind Name: Bind @@ -452,3 +467,4 @@ When clicked, that will open an about message box:
+