vue-good-table icon indicating copy to clipboard operation
vue-good-table copied to clipboard

How to Align Cell texts to middle?

Open premdasvm opened this issue 2 years ago • 4 comments

Issue Type (delete the irrelevant ones)

  • [x] Question

Hi,

How can i align the cell text to the middle ? i've an image added which makes the rows texts looks weird aligned, What styles i need to use for align it to the middle/center?

Screenshot 2022-06-29 at 12 37 32 AM

premdasvm avatar Jun 28 '22 19:06 premdasvm

+1 following.

yakovcohen4 avatar Aug 25 '22 10:08 yakovcohen4

+1 following.

yogithesymbian avatar Oct 11 '22 22:10 yogithesymbian

+1. This seems easy, bug the auto-added-class vgt-align-left seems to always take precedence. I've done the tdClass thing on columns and the class shows up, but it doesn't override the align-left. I'm not seeing how not to enable that class unless I somehow copy your stylesheet and make my own without that util class. Any ideas? Thanks!

jdhaines avatar Dec 22 '22 19:12 jdhaines

Hi! I found hack) You need add 'vgt-center-align' class: "thClass: 'vgt-center-align'" to fix it

ilyaber-dev0 avatar Apr 22 '24 00:04 ilyaber-dev0