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
222 stars 84 forks source link

support mobile view in SearchControl + Phone/Email formatters #588

Closed mehdy-karimpour closed 1 year ago

mehdy-karimpour commented 1 year ago

The solution is to render some styles when we are in responsive mode. The style is based on this article https://css-tricks.com/responsive-data-tables and the calculation for columns is in our project, but if you are agree we can put it as default behavior in the Framework.

olmobrutall commented 1 year ago

Looks interesting… @caltane also asked for a similar feature a few years ago.

I think the change is to complex for an extension point that doesn’t work by itself. Things like the button to switch mode could be moved outside of SearchControlLoded.

Alternatively the feature could be included in framework, how much remaining code is necessary?

I’m not sure about the naming. Responsive means that the table can adapt to different screen sizes, is not a synonym of “mobile”.

You could group the two properties in a responsiveOptions object.

Finally, maybe there should be the possibility to configure this responsive options globally and/or in the query settings.

What is the behavior with long text columns like descriptions?

Also this responsive mode should probably disable try-no-wrap