SharePoint connected web parts - How to shade (highlight) current filter selection
SharePoint Online - I have a Projects list and a Tasks list. the Task list has a Lookup field called Project Name which looks up the Project name from Project list. I then created a page with both app parts and connected them so that when I select a project
name it shows tasks only for that project. Visually the only cue is a small icon next to the project name that indicates what project I have selected. Is there a CSS to shade or highlight the project name?
September 7th, 2015 12:58am
Hi,
We can use jQuery to achieve it. Please add the following code into a content editor web part.
<script src="http://code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("table.ms-listviewtable img[alt='Selected']").parent().next().css("background-color","#AA22AA"); }); </script>
Best Regards,
Dennis
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2015 10:34pm