简体   繁体   中英

Ext js grid seethrough

I want to have an Ext Js grid which is completely transparent. Is this possible? I have tried multiple things to achieve this. Changing style of individual cells, changing styles of rows, overriding ext js CSS. But nothing seems to work.

Sorry for not posting any code but I am interested more in the correct approach

Example using renderer:

metaData.style = "background-color:transparent !important";

Example using bodyStyle:

bodyStyle: 'background:transparent;'

Thaks in advance

Just add to you grid:

Code 3.4

new Ext.grid.GridPanel({     
          ...

       style: {
            opacity: 0.5
           }
          ...})

Code 4.2:

Ext.create('Ext.grid.Panel', {
          ...

       style: {
            opacity: 0.5
           }
          ...})

It`sa standart attribute of grid in 3.4 and 4.x Ext JS

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