Jump to content

UniEvents, BeforeInit, HTML Array, pourcent


AdmBest

Recommended Posts

Hello,

I use TUnimDbListGrid to show a personal view of my data but I don't understand why my array doesn't show correctly :

On the ClientEvent / beforeInit I have

 

function beforeInit(sender, config)
{            

  var htmlRow= 
'<table style="width: 100%; height: 100%; vertical-align: middle;"> '+
'<tbody> '+
'<tr> '+
'<td><span style="fon-weight: bold; color: #000000; font-size: 16px; width: 100%; display: inline-block;">{2}</span> <span style="color: #808080; width: 100%; font-size: 13px; display: inline-block;">{1}</span></td> '+
'<td style="width: 100px;"><span style="color: #ff6600;">{0}</span></td> '+
'<td style="width: 100px;"><span style="color: #ff6600;">{0}</span></td> '+
'</tr> '+
'</tbody> '+
'</table> ';

  config.itemTpl= new Ext.XTemplate(htmlRow);
}  

 

The result is like this  and not with align :

 

2021-08-18-21-52-19-BST-Win10-192-168-20

 

Somebody can help me (V7.0.0, Delphi 10.4)

 

Link to comment
Share on other sites

×
×
  • Create New...