internal override void Changed(bool e) { BSCollapseEvent = new BSCollapseEvent() { Target = this }; if (e) { ShowEvent.InvokeAsync(BSCollapseEvent); EventQue.Add(ShownEvent); } else { if (IsNavbar && Navbar != null) { if (Navbar.HasCollapsed == false) { Navbar.HasCollapsed = true; Navbar.Visable = false; } } HideEvent.InvokeAsync(BSCollapseEvent); EventQue.Add(HiddenEvent); } }
internal override async Task Changed(bool e) { Collapsing = true; BSCollapseEvent = new BSCollapseEvent() { Target = this }; if (e) { await ShowEvent.InvokeAsync(BSCollapseEvent).ConfigureAwait(false); EventQue.Add(ShownEvent); } else { if (IsNavbar && Navbar != null) { if (Navbar.HasCollapsed == false) { Navbar.HasCollapsed = true; Navbar.Visible = false; } } await HideEvent.InvokeAsync(BSCollapseEvent).ConfigureAwait(false); EventQue.Add(HiddenEvent); } }
protected void OnClick() { IsOpen = false; OnDismiss.InvokeAsync(EventCallback.Empty); BSAlertEvent = new BSAlertEvent() { Target = this }; CloseEvent.InvokeAsync(BSAlertEvent); EventQue.Add(ClosedEvent); }
internal override void Changed(bool e) { BSDropdownEvent = new BSDropdownEvent() { Target = this }; if (e) { ShowEvent.InvokeAsync(BSDropdownEvent); EventQue.Add(ShownEvent); } else { HideEvent.InvokeAsync(BSDropdownEvent); EventQue.Add(HiddenEvent); } }
internal override void Changed(bool e) { BSModalEvent = new BSModalEvent() { Target = this }; if (e) { ShowEvent.InvokeAsync(BSModalEvent); EventQue.Add(ShownEvent); } else { Closed = true; HideEvent.InvokeAsync(BSModalEvent); EventQue.Add(HiddenEvent); } }