Tradeshift / tradeshift-ui

Tradeshift UI is a framework-agnostic JavaScript library to help Tradeshift App developers to create cohesive user experiences and to provide reusable UI components.
https://ui.tradeshift.com
Other
33 stars 44 forks source link

Tables should support multiple images/buttons in a table cell #765

Open bogdan-brezuica opened 5 years ago

bogdan-brezuica commented 5 years ago

Is your feature request related to a problem? Please describe. I can give 2 examples where we need this: https://tradeshift.invisionapp.com/share/BVQM178JYZU#/screens/351285408 - in this example, we need to display between 0 and 3 badge icons in a cell. The badges need to have a click handler too, which opens an aside with more information about the badge (similar to Profile app). Also, in the last column we have some text (100%) and an icon (info), that needs to have a click handler too. The behaviour is similar, clicking the info icon would open an aside with more information. https://tradeshift.invisionapp.com/share/BVQM178JYZU#/screens/351285207 - in this example, we have a column/cell that needs to have 2 action buttons.

Describe the solution you'd like Maybe the table can accept an array instead of an object for a cell value. The array can contain multiple images, buttons or text. Also, the images should have a click handler, similar to buttons.

oleg-sdk commented 4 years ago

Piggybacking on the above request, we'd like the ability to insert tags inside the table cells. This will allow us to better display various statuses inside the table.

image