Skip to content

Commit

Permalink
[GoldenLayout] Add LayoutConfig.PopOutWholeStack
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jan 23, 2024
1 parent cc09e40 commit fb08b33
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 108 deletions.
3 changes: 3 additions & 0 deletions src/Scratch/25 - GoldenLayout/GoldenLayout.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module LayoutConfig =
let Default =
{ Theme = Theme.BorderlessDark
PopInOnClose = true
PopOutWholeStack = true
LabelMinimize = "Minimize"
LabelMaximize = "Maximize"
LabelPopOut = "Open in new window"
Expand Down Expand Up @@ -292,6 +293,8 @@ module GoldenLayoutApp =
let ofConfigSettings (config : LayoutConfig) =
let o = JObject()
o.["popInOnClose"] <- JToken.op_Implicit config.PopInOnClose
o.["popoutWholeStack"] <- JToken.op_Implicit config.PopOutWholeStack
o.["closePopoutsOnUnload"] <- JToken.op_Implicit false
o

let ofLayoutConfig (config : LayoutConfig) (layout : Layout) =
Expand Down
3 changes: 3 additions & 0 deletions src/Scratch/25 - GoldenLayout/GoldenLayoutModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ type LayoutConfig =
/// Shows a small dock button in popouts if false.
PopInOnClose : bool

/// Determines whether popout affects the whole stack or just the active tab.
PopOutWholeStack : bool

/// Tooltip label of minimize button.
LabelMinimize : string

Expand Down
Loading

0 comments on commit fb08b33

Please sign in to comment.