adding an arbitrary TD class

(4 posts) (2 voices)

Tags:

No tags yet.

  1. shannon.patterson, Member

    Reading through the documentation, I know I can add a class to the table result rows and cells (using dbr.colclass and dbr.rowclass), but it appears that these classes can only be values in the result set. ie <tr class="1234">

    Is there any way to add an arbitrary class name to table cells?

    I would like to be able to have html output that looks like this:
    <td class="id">1234</td>

  2. myDBR Team, Key Master

    myDBR includes few ways of attaching CSS-classes to resultset:

    - dbr.resultclass will add it to the result table
    - dbr.rowclass will add it to the result row
    - dbr.colclass will add it to specified column (every row)
    - dbr.cellclass will add it to arbitrary cell

    Was there something else you were looking for?

    --
    myDBR Team

  3. shannon.patterson, Member

    when I apply the
    select 'dbr.rowclass', 'divrow';
    instruction (found in the PDF documentation), I get the error

    "unknown column reference: divrow"

  4. myDBR Team, Key Master

    Hi,
    dbr.rowclass parameter (in your case the divrow) refers to a column in the resultset which contains the class-name for the row. When you get the error message stated above, you are missing a column with column reference 'divrow'.

    --
    myDBR Team


Reply

You must log in to post.