3.0.0

image on the right of cell?


obj.setCellTemplate(new AW.Templates.ImageText);
obj.setCellImage("search", 5,11);


The image is on the left
is it possible to put the image on th right?
thierry
October 28,
October 28,
I test this
#grid2 .aw-column-5 .aw-item-image{position:absolute;right:-4px;top:50%;margin-top:-9px}

The image is on the right

But I want the text to be on the right and it is hidden by the image.
The text bust be rriht-aligned but just before the image which is on the right
October 28,
Sorry, I am null in CSS, but could be something like this?
#grid2 .aw-column-5 .aw-item-text {padding-right:19px}
#grid2 .aw-column-5 {text-align: right}
October 28,
great that is ok
thank you a lot

just a last question
how to for a particular cell and not for the whole column

#grid2 .aw-column-5 {text-align: right}
obj.getCellTemplate(5,0).setStyle('text-align', 'right');

#grid2 .aw-column-5 .aw-item-text {padding-right:19px}
Which function?
thierry
October 28,
I have the solution

obj.getCellTemplate(5,0).getContent("box/text").setStyle('padding-right','19px');

thank you again
thierry
October 28,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.