You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I`m investigating how to design a complex component API with nested properties
Let's imagine we are creating a grid component with columns. We have a set of predefined columns, other columns are autogenerated based on source structure. Also, I have bindings to the properties of nested components.
I need to compose inner components with root component properties to obtain markup for prerendering. So I need to obtain the whole component structure before render. How to do it?
Other platforms I`m familiar like Winforms or WPF have a System.Component.Model.ISupportInitialize concept for transactional component initialing however I can't find analogs in Blazor.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I`m investigating how to design a complex component API with nested properties
Let's imagine we are creating a grid component with columns. We have a set of predefined columns, other columns are autogenerated based on source structure. Also, I have bindings to the properties of nested components.
I need to compose inner components with root component properties to obtain markup for prerendering. So I need to obtain the whole component structure before render. How to do it?
Other platforms I`m familiar like Winforms or WPF have a System.Component.Model.ISupportInitialize concept for transactional component initialing however I can't find analogs in Blazor.
What is the recommended way to design such API?
Beta Was this translation helpful? Give feedback.
All reactions