Skip to content

Commit

Permalink
[GoldenLayout] Allow popout and move between windows of unclosable el…
Browse files Browse the repository at this point in the history
…ements
  • Loading branch information
hyazinthh committed Mar 4, 2024
1 parent aa15ba2 commit 6fdb274
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/Aardvark.UI.Primitives/Golden/GoldenLayout.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ module Builders =
member inline x.Title(e : Element, title : string) =
{ e with Title = title }

/// Determines if the element can be closed.
/// Note: Unclosable elements cannot be popped out or moved to another window.
/// Determines if the element can be closed via buttons in the header and tab.
[<CustomOperation("closable")>]
member inline x.Closable(e : Element, closable : bool) =
{ e with Closable = closable }
Expand Down
3 changes: 1 addition & 2 deletions src/Aardvark.UI.Primitives/Golden/GoldenLayoutModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ type Element =
/// Title shown in the header.
Title : string

/// Determines if the element can be closed.
/// Note: Unclosable elements cannot be popped out or moved to another window.
/// Determines if the element can be closed via buttons in the header and tab.
Closable : bool

/// Determines the position of the header or if one is shown at all.
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 6fdb274

Please sign in to comment.