ModalOptions, DropdownDemo bugfix

features/rewrite/fix_14032023
markosteger 2 years ago
parent 7d7c47a19a
commit 8733157473

@ -4,7 +4,7 @@
@using Connected.Components; @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> <OptionTemplate>
@context.Name @context.Name
</OptionTemplate> </OptionTemplate>

@ -18,12 +18,14 @@ public class ModalOptions
DisableBackdropClick = options.DisableBackdropClick; DisableBackdropClick = options.DisableBackdropClick;
NoHeader = options.NoHeader; NoHeader = options.NoHeader;
DisableEscKey = options.DisableEscKey; 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; DisableEscKey = disableEscKey;
DisableBackdropClick = disableBackdropClick; DisableBackdropClick = disableBackdropClick;
NoHeader = noHeader; NoHeader = noHeader;
Type = type;
} }
} }

Loading…
Cancel
Save