How to mark EditableGrid Header in BOLD

Hi,

I have an editable grid where I have some columns with headers (i.e a!gridLayoutHeaderCell(label: "HEADER",align: "CENTER")). I am trying to mark header label in BOLD (i.e HEADER). I have already tried richtext, no luck.

Please help me with it.

Thanks

Shamim Ahmad

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Unicode bold letters start at 119808.

    So char(119808) should render a capital A in bold.  code("A") gives you 65.  So, you need to add 119743 to each of your letters to make them bold.  Unless they're spaces or punctuation.

    This gets you ALL CAPS, but the lower case letters aren't in the same relative position on both ends of the unicode standard.  So you have to adjust the starting point for the list of lowercase letters, and the number you have to add.

    joinarray(
      a!forEach(
        items: code(ri!text),
        expression: if(
          and(fv!item > 64, fv!item < 91),
          char(fv!item + 119743),
          if(
            and(fv!item > 96, fv!item < 123),
            char(fv!item + 119737),
            char(fv!item)
          )
        )
      )
    )

Reply
  • 0
    Certified Lead Developer

    Unicode bold letters start at 119808.

    So char(119808) should render a capital A in bold.  code("A") gives you 65.  So, you need to add 119743 to each of your letters to make them bold.  Unless they're spaces or punctuation.

    This gets you ALL CAPS, but the lower case letters aren't in the same relative position on both ends of the unicode standard.  So you have to adjust the starting point for the list of lowercase letters, and the number you have to add.

    joinarray(
      a!forEach(
        items: code(ri!text),
        expression: if(
          and(fv!item > 64, fv!item < 91),
          char(fv!item + 119743),
          if(
            and(fv!item > 96, fv!item < 123),
            char(fv!item + 119737),
            char(fv!item)
          )
        )
      )
    )

Children