Compare commits

...

2 Commits

Author SHA1 Message Date
markosteger 8733157473 ModalOptions, DropdownDemo bugfix
2 years ago
Matija Koželj 7d7c47a19a Add modal type enum
2 years ago

@ -4,7 +4,7 @@
@using Connected.Components;
<Dropdown Items=@Items ItemToKey=@((e) => e.Value.ToString()) @bind-SelectedItems="@SelectedItems" AllowMultiple=true>
<Dropdown Items=@Items @bind-SelectedItems="@SelectedItems" AllowMultiple=true>
<OptionTemplate>
@context.Name
</OptionTemplate>

@ -0,0 +1,13 @@
using System.ComponentModel;
namespace Connected.Enums;
public enum ModalType
{
[Description("")]
Default = 0,
[Description("basic")]
Basic = 1,
[Description("image")]
Image = 2
}

@ -18,12 +18,14 @@ public class ModalOptions
DisableBackdropClick = options.DisableBackdropClick;
NoHeader = options.NoHeader;
DisableEscKey = options.DisableEscKey;
Type = options.Type;
}
public ModalOptions(bool disableEscKey, bool disableBackdropClick, bool noHeader)
public ModalOptions(bool disableEscKey=false, bool disableBackdropClick=false, bool noHeader=false, ModalType type=ModalType.Default)
{
DisableEscKey = disableEscKey;
DisableBackdropClick = disableBackdropClick;
NoHeader = noHeader;
Type = type;
}
}

Loading…
Cancel
Save