Menu

JST Question

2007-07-21
2013-04-22
  • Ivo Baehr - IbTech

    Hello!!

    There is a way to put a specific row with bold fonts?
    I have a row identify with a specific rowId. When this row is "drawing" in the table
    i would like that the fonts of this row was bold. How can I do this??

     
    • Luis Fernando Planella Gonzalez

      There is no specific way of doing it.
      You could (if all columns are strings) add the text for that specific row with within <b> and </b> tags.

       
    • Ivo Baehr - IbTech

      Hi Luis!!

      Well, unhappily this solution is not posible for me because the columns that I will put in "bold functions" isn't only strings....

      But, I have a idea, that depends, of course, one your implementation in JST...

      My idea is:
      - I can create customparser for the columns (I already do this. You give-me this Idea to I solution another problem, in the past). Well, the customparser has a format function that is called when you "draw" the line in the table.
      If we create a new parameter to this function (not required) when you pass me the rowId?? I think this so interesting, because i receive the rowid and when I'm drawing a column, i can test my specifiec row Id and, more!! I can "access" the value of another columns (with the rowid) and make a lot of customizations! (If need).

      Well, this is a idea... What you think about that?? It's possible???

       
    • Luis Fernando Planella Gonzalez

      I though about what you wrote and implemented it...
      Now the table always passes the row instance (not the row id) and the column instance to the parser's format or parse methods.
      Also, I've added another parser type that may be interesting for you: WrapperParser. Check out the doc on CVS: http://javascriptools.cvs.sourceforge.net/\*checkout*/javascriptools/javascriptools2/docs/manual/Parsers_wrapper.html
      Just remember that, if you use it, the second argument for the formatFunction is the original value, so the row is the 3rd and the column is the 4th.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.