/// <summary> /// Use in completely override the modal /// </summary> /// <param name="content"></param> /// <param name="disableBackground"></param> /// <param name="className"></param> public void ToggleModal(RenderFragment content, bool disableBackgroundCancel = false, string className = null) { var modal = new ModalParameter() { Content = content, DisableBackgroundCancel = disableBackgroundCancel, Class = className }; ModalParameter = modal; NotifyModalChange(); }
public async void ToggleModal(string title = null, RenderFragment body = null, RenderFragment footer = null) { var modal = new ModalParameter() { Class = null, Body = body, Footer = footer, Title = title, DisableBackgroundCancel = false }; ModalParameter = modal; //ModalParameter.Body = ModalParameter.Body == body ? null : body; if (title is null && body is null && footer is null) { await JSRuntime.InvokeVoidAsync("modalHelper.unlockBodyScrolling"); } NotifyModalChange(); }
protected void ShowDashboardSettings(Guid id) { Modal.Show <DashboardSettings>("Settings", ModalParameter.Get("DashboardId", id)); }
/// <summary> /// Use in full customized modal /// </summary> /// <param name="modal"></param> public void ToggleModal(ModalParameter modal) { ModalParameter = modal; NotifyModalChange(); }