No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Datatables classes and style functions

    Help
    2
    3
    909
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lucien last edited by Lucien

      HI:) I think I read somewhere that the classes and style functions for the datatables columns would have access to the row data as a second parameter. However, I get undefined i.e. classes(cell, row). Thanks:)

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        How are you using them?

        1 Reply Last reply Reply Quote 0
        • L
          Lucien last edited by Lucien

          Hi. I want to assign certain cell’s background color based on the data of other columns or properties in the row object. However, it might be better for me to use templates, but I’m not exactly sure how to fit the template into the cell, i.e. remove the default padding. Also, not completely related, but it would also be great if we had access to the row data in the sort function, as I would like to sort a column based on some other property in the row object. Thanks so much in advance.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post