简体   繁体   中英

How to change the font in the grid GXT3

对不起这个简单的问题,如何更改网格中的字体?

If you are talking about the text which might be displayed in one of your columns, you can do this easily with cells. When you set up your ColumnModel class, you can pass a custom cell to one of the columns. Then, with html and css, you can style up the column per your needs.

If you want to change the column headers, then you can simply pass some SafeHtml to that column's ColumnConfig.setHeader(SafeHtml) method. Again, this would be done when you set up your ColumnModel . This let's you style up the header however you wish.

If you do use images or css, I highly suggest using the ClientBundle and CSSResource classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM