Home › Forums › vLooup for SharePoint › Add IDs to vLookup Elements
- This topic has 6 replies, 2 voices, and was last updated 8 years ago by DCH.
-
AuthorPosts
-
-
December 8, 2015 at 18:21 #9499
Alexander,
Is it possible to add IDs to vLookup TD elements? I’d like to apply additional HTML to Lookup columns that allow multiple values. For example, I’d like to make them List Items LI rather than just strings with Break tags. I could write a funky selector to get to them but it would be more reliable with an ID.
Thanks!
-
December 12, 2015 at 00:17 #9553
Hi,
I’ll add a CLASS in the next release (a few days away). The reason for using a class and not an ID is that if you want to apply a style to multiple rows in a column, you would have to address multiple ID’s.The CLASS I’m using is “FieldInternalNameOfvLookupColumn_FieldInternalNameOfChildColumn”. This way you can style your column like this:
$("td.vLookupTasks_Created").css("font-weight","bold");
You could also use CSS with the same selector to style the column.
Wait for the new release to surface, and let me know how it works out.
Alexander
-
December 14, 2015 at 05:16 #9586
So awesome, looking forward to it! Thanks
-
November 7, 2016 at 19:18 #14002
Alexander,
I know this is old, but how do I get the styles to apply to vlookup? It looks like the vLookup load is asynchronous, so my styles are not applied to the results. I’ve tried using the DFFS custom JS, the DFFS custom CSS, and loading the styles on the page in a webpart.
Thanks!
-
November 7, 2016 at 19:22 #14004
Also related to the question above, I would like to be able to apply styles to the column headings (like we can for the grouping headers), and to replace the view, edit and refresh icon images (like I can for the DFFS tooltip). Is this possible with just css classes?
Thanks!
-
November 8, 2016 at 20:09 #14023
You can change the images by adding this variables to the Custom JS in DFFS:
spjs.vLookup.data.viewImg = "Path to new image"; spjs.vLookup.data.editImg = "Path to new image"; spjs.vLookup.data.reloadImg = "Path to new image";
The heading can be changed by overriding the CSS in Custom CSS in DFFS:
td.childTableHeader{ font-size:22px!important; color:green!important; }
Alexander
-
November 10, 2016 at 17:25 #14097
So awesome, thank you!
-
-
AuthorPosts
- You must be logged in to reply to this topic.