BlazorTable
BlazorTable copied to clipboard
How Data can be Dynamic in Table like <TItem>?
trafficstars
How Data can be Dynamic in Table like <TItem>?
In Current Example, Data is coming thru PersonData which is a single model, What if I am using this table as plugin or shared component and data can come from one model on click of one link and if i click on 2nd link, then the data can come from different model/datasource. Is there any generic <T> kind of implementation for data's?
You could implement a generic interface and have the table bind to interface properties. This will work if you can model your data with a single interface. Otherwise you'll probably need to use reflection or something of the sort.