signumsoftware / framework

Open Source framework for writing data-centric applications using the latest versions of .Net Core, C# (not-nullable), ASP.NET Web API, Typescript (strict), React, D3 and Sql Server or PostgreeSQL
https://www.signumsoftware.com/en/Framework
MIT License
221 stars 84 forks source link

Custom drilldowns #593

Closed mehdy-karimpour closed 1 year ago

mehdy-karimpour commented 1 year ago

Hi @olmobrutall, In SearchControlLoaded, we can remove drillDowns:Lite<Entity>[] = []; and use current extraUrlParams, because we set it in UserQueryMenu, so we can check if exists some keys that start with "drilldown", then pass it to the onDrilldown extension point. This method is set in UserQueryClient, so we can call Decoder.decodeDrilldowns to get real drilldowns.

olmobrutall commented 1 year ago

Yes, but for more generality, will be good that the extension point is simply 'onDoubleClick/onNavigate'. There is probably this property already at the component level, but we would need a global extension point too as fallback.

olmobrutall commented 1 year ago

Merged! Thanks a lot for your patience with the last polishings :)

mehdy-karimpour commented 1 year ago

Awesome!, Thanks for your great help 🥇