Binding to Our Own Custom Parameters inside the Custom Dialog Components #3331
Replies: 2 comments 1 reply
-
If you pass a You can see an example on this page. Is this enough for your application? |
Beta Was this translation helpful? Give feedback.
-
What I was looking to achieve here was, I'm showing a Panel here and running a long running process from a calling page, during the time the long running process is running, The Panel should show the progress bar once the long running process result is back, the panel should show the result. The main context here is Panel doesn't doesn't know about Long Running Task directly, the caller decides when to show the loader and when to show the content in the panel. |
Beta Was this translation helpful? Give feedback.
-
Currently, we can pass in the Parameters for Custom Dialogs that Accepts By Custom Parameters Defined by Us using Fluent UI's DialogParameters Construct and Add All the custom Parameters to DialogParameters Parameter Property. Can we do that Same Binding?
Let's say we have Dialog which Accept Boolean Binding Called IsLoading which two-way binded like all the Blazor Components are.
I tried creating a Binding using EventCallBack.Factory.CreateBinding but the problem here is Capturing that Binding in Custom Dialogs Initialization and assign them to IsLoading and IsLoadingChanged Components Parameters, we can't seem to capture the binding in a straight forward as far as I was aware like we can do for normal parameter which by using Dialog.Instance.Parameters.TryGet
Any Suggestions Here?
Beta Was this translation helpful? Give feedback.
All reactions