Skip to content

Commit

Permalink
Add AlwaysOn ControlsType
Browse files Browse the repository at this point in the history
  • Loading branch information
suraj-desai-wtg committed Jan 17, 2024
1 parent fe86170 commit 61d4d51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Blazor.Diagrams.Core/Controls/ControlsContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public ControlsContainer(Model model, ControlsType type = ControlsType.OnSelecti
{
Model = model;
Type = type;
if (type == ControlsType.AlwaysOn)
{
Visible = true;
}
}

public Model Model { get; }
Expand Down
3 changes: 2 additions & 1 deletion src/Blazor.Diagrams.Core/Controls/ControlsType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ namespace Blazor.Diagrams.Core.Controls;
public enum ControlsType
{
OnHover,
OnSelection
OnSelection,
AlwaysOn
}

0 comments on commit 61d4d51

Please sign in to comment.