• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

replace word with image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replace word with image

    See attached

    replace word with image.docx

  • #2
    Hi,

    Can you please post your question/issue directly instead of just attaching a document? That way, others don't have to download your document to view the question/issue.

    Thanks!

    -------
    From the above attached document:

    Hello,

    I have a grid that has a column with the word “UP”. I want to replace this word with an up arrow. How would I do that ?

    Screenshot 2023-10-02 at 9.29.15 AM.png

    Do I do it using this ? How would I program it here ?

    Screenshot 2023-10-02 at 9.29.21 AM.png

    Comment


    • #3
      certainly....wasn't sure how to upload a specific image.....

      Comment


      • #4
        Yes, you would use a custom formatter, using JavaScript. Below is an example: Check if the value is equal to 'UP', then return an element with an up arrow.

        Code:
        if (v === 'UP') {
            return '<div class="vvicon-in-cell vvicon-arrow-up9"></div>';
        }
        return v;

        Comment


        • #5
          Worked like a charm... thank you !


          arrow.jpg

          Comment

          Working...
          X