This topic is locked

How to display files icons in a row with name as tooltip

3/26/2019 2:32:12 AM
PHPRunner General questions
T
Tayyab Ilyas author

Hi

I have advance file uploaded and multiple files uploaded. Then in view settings i choose show Icon and show customer expression. I kept custom expression blank so it removed file name to display. It display file icons only but in vertical seems there is some
code in view page.

What i want to achieve is to show file icons in row (horizontal) and file name as tool-tip when mouse over the icon.

Any idea, how do i achieve this.Thanks in advance

A
acpan 4/6/2019

I am not sure my case applies to you. i add "title" to show tool-tip when mouse over a specific icon image or URL in a grid row.
eg.
<a href="XXX.php?mastertable=XXX_Folder&group_name=XX&masterkey1=2271" title="my tool tip"><span class="glyphicon glyphicon-save-file" style="font-weight: bold;font-size: large; color: blue;"></span></a>
It just adding a title for any image or url link, in that case, when mouse over for a sec, it will pop the title., traditional way but serve my purpose.
ACP

A
acpan 4/6/2019

Just a bit more info, you probably can use custom expression.
assuming your data is store like that:
[{"name":"..\/img\/logo\/115\/ukzv2i1o.png","usrName":"edacemlp.png","size":13745,"type":"image\/png","thumbnail":"..\/img\/logo\/115\/edacemlp_mi7qhriv.png","thumbnail_type":"image\/png","thumbnail_size":9644,"searchStr":"edacemlp.png,!:sStrEnd"}]
$filename = strtoupper($file["name"]);
$value= "<h5><a href='' title ='$filename'>your_image_thumbnail<a></h5>";
or turn off icon and use custom icon:
$value= "<h5><a href='' title ='$filename'><span class="glyphicon glyphicon-save-file" style="font-weight: bold;font-size: large; color: blue;"></span><a></h5>";
When mouse over it will pop the filename.
ACP

T
Tayyab Ilyas author 4/9/2019

Hi, Thank for trying to support me.
I believe there is some source file where we have control behaviour and we can modify this from control file so that we have same behaviour on all controls in the project. Any one knows about it?