While showing collections, we can use oj-table or oj-data-grid or we can use oj-for-each to display multiple values
When we show some data which comes in API, and we don’t have to much grouping and all we can show as table
If the data has few actions like approve or to update few columns like Quantity or Price or has some links to open in a page to view some more data or link to download some data we can use table
When we want to have a screen with large amount of data, where user will add multiple rows, edit like a excel instead of table we can use data grid. Data grid has better edit support than editable table. It is easy to handle edit events on data grid.
If we want to show summary based on some columns, like we are showing crick players information like number of sixes or total number of runs scored or total wickets taken per team, we can have player records and team records to show total. This will be better achieved with grid.
If we want to show People like data with images or some products like shirts, cars or something else where having a different look and feel, than table helps.
We can also provide option to change the view from table to grid to for-each
e.g.:
live link – https://khalil232.com/apps/ojet-apps/?ojr=collections-view-option
Greate post. Keep posting such kind of information on your site.
Im really impressed by it.
Hi there, You’ve done a great job. I will
definitely digg it and individually recommend to my friends.
I’m sure they will be benefited from this website.