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

    q-table fixed column width

    Help
    6
    6
    10554
    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.
    • C
      charlesvinoth last edited by

      How can i set fixed column width in q-table. How can i wrap overflowing table cell.

      Screenshot

      1 Reply Last reply Reply Quote 0
      • P
        pavarine last edited by

        Try this at your datatable columns definition:

        cols: [
        {
        name: “status”,
        align: “left”,
        filter: true,
        sortable: true,
        style: ‘width: 40px’,
        type: “string”
        },
        ]

        1 Reply Last reply Reply Quote 0
        • T
          thescript last edited by

          Hi @pavarine , could you please show sample implementation in setting style and in the q-td tag body and header, thanks

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

            Any way to force a fixed column width?

            just set the style: 'width: 40px' do not work.
            Setting the headerStyle prop also does not work.
            min-width and max-width also do not work…
            Is there any way to set a fixed column width?

            1 Reply Last reply Reply Quote 1
            • T
              tindecken last edited by

              any update on this? I met the same issue

              metalsadman 1 Reply Last reply Reply Quote 0
              • metalsadman
                metalsadman @tindecken last edited by

                @tindecken see the other search results, https://forum.quasar-framework.org/topic/6290/q-table-custom-column-width-via-column-style-property/2

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