Open jsakamotoIGJP opened 1 year ago
I'll have to look at what scenario we intended that to be used. Note IIRC we can't do it on first time since the refs aren't populated with that timing IIRC, but it's possible I'm thinking of react. But also the refs may change again later.
I found the complicated example code about the "IgbCategoryChart" below.
https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/charts/types/area-chart
What that code above does is only assign the
IgbLegend
object to theLegend
property of theIgbCategoryChart
object. Regardless of that, the code is too complicated to easy understand.That example code can be refactored like the one below. (Notice: The code below is taking care of the warning about nullable reference type)
I've also found the same complicated examples that use the "BindElements" property on other pages. All of those complicated examples should be refactored.