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

    Datatable: Hide columns in mobile view?

    Help
    5
    7
    2079
    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.
    • ssuess
      ssuess last edited by

      Is there a simple way to hide some columns on small screens (either in responsive view or table view)?

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

        As far as I know at the moment there is no simple solution, but the next release should include a rewritten DataTable, so wait for this one. 😉

        1 Reply Last reply Reply Quote 1
        • J
          jimmack1963 last edited by

          mobile-hide is listed in the doc, but does not make it through to the css in my 14.2 version of Quasar.

          1 Reply Last reply Reply Quote 0
          • N
            Nicholas last edited by

            +1.
            Can’t find any information in the docs yet. I’d like a class attribute in the columns array which lets us do something like:
            class: ‘gt-sm hidden-sm’ etc

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

              @Nicholas I think you can use visible-columns for that.

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

                @shone does that work separately on mobile from desktop? I thought it was everywhere or nowhere

                N 1 Reply Last reply Reply Quote 0
                • N
                  Nicholas @ssuess last edited by

                  @ssuess That’s right. I have got it working based on screen size, but like you mentioned, its either everywhere or nowhere. It is a working solution in my case though; but it would be a lot easier if we could use CSS classes to manipulate the table instead.

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