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 setting alignment for table headings

    Framework
    3
    3
    2790
    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
      lvismer last edited by

      Is it possible to add alignment for Data table row headings, like wanting to right align a specific row heading cell. I know it is possible using the classes property to align the cell but I’m not seeing anything for the heading itself.

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

        Currently, there is no other way of centering the headings than using plain CSS.

        .q-data-table th {
            text-align:right;
        }
        

        But this will align all your headings.

        1 Reply Last reply Reply Quote 0
        • Luiz Leite
          Luiz Leite last edited by Luiz Leite

          Olá.
          Desculpe-me a intromissão mas existe outra maneira SIM.
          Na definição do label coloque como abaixo:
          label: ‘<span style=“float:right;”>XXX</span>’,
          onde ‘XXX’ deve ser substituido pelo texto do título desejado.

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