All text should be display when hover on the text

Brijmohan
Tera Contributor

Hi All,

 

I have a requirement something like that if someone hover on text, all text should be visible of short description in widget. I am trying in OOB my request widget in PDI, if it work there then I will apply in my code.

 

In below snap we can see I gave short description long but it showing limited in the list view. My requirement whenever hover on it, it should be display all short description. Can we pass value dynamic in title tag in html ??

Brijmohan_1-1690230691175.png

 

Brijmohan_2-1690230983526.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Nia McCash
Mega Sage
Mega Sage

If you want to add a title tag in the My Request widget, you can add it to line 46 of the OOB code:

NiaMcCash_0-1690293862845.png

 

So instead of

<a href="?id={{::item.url.id}}&table={{::item.url.table}}&sys_id={{::item.url.sys_id}}" sn-focus="{{::item.highlight}}" aria-label="{{::item.display_field}} , {{::item.display_number}}"> {{::item.display_field}} </a>

You can have

<a href="?id={{::item.url.id}}&table={{::item.url.table}}&sys_id={{::item.url.sys_id}}" sn-focus="{{::item.highlight}}" aria-label="{{::item.display_field}} , {{::item.display_number}}" title="{{::item.display_field}}"> {{::item.display_field}} </a>

 

View solution in original post

2 REPLIES 2

Nia McCash
Mega Sage
Mega Sage

If you want to add a title tag in the My Request widget, you can add it to line 46 of the OOB code:

NiaMcCash_0-1690293862845.png

 

So instead of

<a href="?id={{::item.url.id}}&table={{::item.url.table}}&sys_id={{::item.url.sys_id}}" sn-focus="{{::item.highlight}}" aria-label="{{::item.display_field}} , {{::item.display_number}}"> {{::item.display_field}} </a>

You can have

<a href="?id={{::item.url.id}}&table={{::item.url.table}}&sys_id={{::item.url.sys_id}}" sn-focus="{{::item.highlight}}" aria-label="{{::item.display_field}} , {{::item.display_number}}" title="{{::item.display_field}}"> {{::item.display_field}} </a>

 

Hi @Nia McCash ,

 

Thanks for your response. It is working.

 

Regards,

Brij