ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-table: add possibility to add a vertical align property to table rows/cells

Open MarcusNotheis opened this issue 6 years ago • 8 comments

Original Issue from https://github.com/SAP/ui5-webcomponents-react/issues/547 by @rkl1994:

Is your feature request related to a problem? Please describe. When using the component 'table', find that content for each cell is not 'vertical-align=middle', and the display doesn't tidy while there is a button in the row.

If I do it by setting a css class, I have to add this classname to every

Describe the solution you'd like Add 'vertical-align=middle' to table rows

Additional context After 'adding vertical-align=middle', button and label are in the same line Screen Shot 2020-05-29 at 2 32 47 PM

Otherwise, they are not in the same line. Screen Shot 2020-05-29 at 2 35 33 PM

MarcusNotheis avatar May 29 '20 09:05 MarcusNotheis

I think that's already possible: https://github.com/SAP/ui5-webcomponents/issues/1626

vladitasev avatar Jun 01 '20 11:06 vladitasev

Please see: https://sap.github.io/ui5-webcomponents/master/playground/main/pages/TableCustomStyling/

vladitasev avatar Jun 01 '20 11:06 vladitasev

@MarcusNotheis Hello, there is a solution via CSS Shadow parts, linked in the previous comments that you can try already. If you need IE support, we will make additional change to make it work on IE as well.

ilhan007 avatar Jun 01 '20 11:06 ilhan007

@rkl1994: do you need IE11 support?

MarcusNotheis avatar Jun 02 '20 17:06 MarcusNotheis

  1. Thanks for your reply. I think I need IE11 support. By the way, I find that this functionality is tagged with RC8 label, so which means it can be used until ui5-web-components 1.0.0-rc8 released? Screen Shot 2020-06-03 at 9 53 04 AM

rkl1994 avatar Jun 03 '20 01:06 rkl1994

@rkl1994

It will be part of rc.8, not available in rc.7. But, you can use the "next" tag in npm to get the latest development and includes this feature.

npm install @ui5/webcomponents@next

ilhan007 avatar Jun 03 '20 05:06 ilhan007

Hello @rkl1994 we have publish RC.8 so you can try out the Shadow parts solution we have for this use case

PR: #1626 Example: https://sap.github.io/ui5-webcomponents/master/playground/main/pages/TableCustomStyling/

BR, ilhan

ilhan007 avatar Aug 14 '20 13:08 ilhan007

The link is broken guys, and while the sample does show the same idea (link), the styles cannot be seen there, the only way rn seems to be to check the PR directly

dfenerski avatar Dec 30 '22 15:12 dfenerski