-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple items per row #77
Comments
@Climax777 It's a great issue and currently we don't have such a functionality. Marking this issue with "Enhancement" label. By the way, if you know the exact number of items per row, you may build an additional layer (via template and Datasource implementation) to provide N original items as 1 combined item... |
@dhilt Hi
|
@mahdi8731 Hi! Though we have had more flexibility since 2018, it is still impossible to build floating rows UI without a lot of extra efforts. And I'm not sure if this would be solved on the lib end. But if you need to have fixed number of items per row (say, 4), then you may try grouping approach I mentioned in the previous comment. Fortunately, I put grouping demo on stackblitz few months ago: https://stackblitz.com/edit/angular-ngx-ui-scroll-grouping-datasource -- it is rough but it should be enough to catch the idea. Also, there is one more demo on grouping which also could be helpful: https://stackblitz.com/edit/angular-ngx-ui-scroll-grouped-data-table -- more ancient and more complex. As you may see, this is not about flex, but with fixed sub-item width (200), I guess, this solution might work for you. |
I managed it with subgrids and a lot of cursed ::ng-deep styling
<div class="vscroll">
<div *uiScroll="let data of datasource" class="row">
<!-- put some divs here; if styled to span all columns they will show up as extra rows -->
</div>
</div> |
@Fasteroid Thank you for the contribution to the topic! By the way, is there any chance to get a demo on stackblitz/codesandbox/whatever? It might be very helpful for others to have it. |
Hi
I would like to know if this supports multiple items per row, for example when flex-box is used? None of the examples show that it could.
The text was updated successfully, but these errors were encountered: