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

    Anyone built expandable rows in data table?

    Help
    6
    13
    4786
    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.
    • a47ae
      a47ae last edited by

      Take a look at the source code of QDataTable here: https://github.com/quasarframework/quasar/blob/dev/src/components/data-table/QDataTable.vue
      In your example, they added another <tr> element after the initial data.
      So first thing would be to add a prop extendable and alter the template to render an additional row below the data.
      Then you need a way to pass the additional data, so you need to extend the format.
      Finally, you need some logic to toggle the extendable content per row.

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

        Thanks @a47ae, this really helps.

        @rstoenescu: before I dive into this, are you working on such a feature already?

        1 Reply Last reply Reply Quote 0
        • ssuess
          ssuess last edited by

          +1 for this feature!

          1 Reply Last reply Reply Quote 0
          • a47ae
            a47ae last edited by

            The next version is a rewrite of the DataTable that makes it more flexible, so should be implemented soon.

            1 Reply Last reply Reply Quote 0
            • ssuess
              ssuess last edited by

              Any idea when this will be released? Or is the in dev version stable enough to use?

              1 Reply Last reply Reply Quote 0
              • a47ae
                a47ae last edited by

                I have no real ETA, but I would guess near the end of this month, keep an eye on the recent github commits.

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

                  Hi, im using collapsible inside <template>.
                  I will upload a video working when get back in company.
                  With litle css and no-margin / no-padding etc , works very good.

                  1 Reply Last reply Reply Quote 2
                  • gabrielsclimaco
                    gabrielsclimaco last edited by

                    @leon any updates?

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

                      Hi @gabrielsclimaco
                      A litle example https://codesandbox.io/s/x2lx8k8rzp

                      I forgot to make a video, i’m using a more complex in produciton , whit 4 toogles and 1 rating inside the collapse.
                      The problem is , order must be implemented manualy.
                      BTW in QDataTable revamp , @rstoenescu will do it.

                      1 Reply Last reply Reply Quote 0
                      • A
                        april last edited by

                        +1 for this feature please.

                        I wonder if there’s some plain javascript component I can use in the mean time. Anybody knows?

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