Uploaded image for project: 'CKI Project'
  1. CKI Project
  2. CKI-6995

RFE: add "copy to clipboard" buttons beside IDs and names in tables

XMLWordPrintable

      It's so annoying to copy things inside cell_clickable `<td>`. :angry:

      Let's add `<i class="fa-solid fa-clone"></i>` around key strings, something like

      ```html
      <td>
      Some text to copy
      <button onclick="copyText(this)">
      <i class="fa-solid fa-clone"></i>
      </button>
      </td>

      <script>
      function copyText(btn) {
      const td = btn.closest("td");
      const text = td.textContent.replace(/\s*\n?\s*$/, ""); // trim trailing
      navigator.clipboard.writeText(text);
      }
      </script>
      ```

      Jira: CKI-6995(https://issues.redhat.com/browse/CKI-6995)

              Unassigned Unassigned
              rh-ee-tdaapare Tales Lelo da Aparecida
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: