Forums

Forums / Developing Portals / Is there a way to show Tooltips in a Subgrid?

Is there a way to show Tooltips in a Subgrid?

2 posts, 0 answered
  1. Frank Jahn
    Frank Jahn avatar
    9 posts
    Registered:
    22 Apr 2021
    18 Aug 2023
    Link to this post
    Hey,
    I wanted to ask, if there is a way to create tooltips for the columns in a Subgrid?
    For example, when I change the "data-title" attribute to "title", a tooltip with the name will appear, when I hover over the column.

    Thank you for your help.


  2. Rawdon Edghill
    Rawdon Edghill avatar
    76 posts
    Registered:
    16 Dec 2020
    18 Aug 2023
    Link to this post
    Hi Frank,

    Thank you for your question.

    Kindly try this code sample below:

    $( document ).ready(function() {
        //console.log( "ready!" );
      const columnHeaders = document.querySelectorAll('[role="columnheader"]');
      columnHeaders.forEach(header => {
        const dataTitle = header.getAttribute('data-title');
        header.setAttribute('title', dataTitle);
      });
    });

    Please let us know if you are successful. 

    Regards,
    Rawdon
       
2 posts, 0 answered