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

    Problem trying to change 'All' label in 'Records per page'

    Help
    q-table
    2
    3
    1562
    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.
    • A
      aestheticarepa last edited by

      Hey all,
      so, I’m trying to change the rows-per-page-options prop in the QTable component, I’m setting [5,10,0], 0 sets automatically to a label for ‘All’, can I change the label to something else? For example, setting ‘Todo’ instead of ‘All’, I know I can change the bottom scoped slot to change this, but since there’s already an option to change the rows-per-page-label and pagination-label I was wondering if there was an option for this as well

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by s.molinari

        https://github.com/quasarframework/quasar/blob/c66d946e8dd5496eb20db7c0a0a81e18ce262f74/ui/src/components/table/table-pagination.js#L68

        It’s an internal language phrase.

        You can change the English (US) value here permantly (there is also a GB version too that would need changing, plus all the translations, should you wish to do that):

        https://github.com/quasarframework/quasar/blob/c66d946e8dd5496eb20db7c0a0a81e18ce262f74/ui/lang/en-us.js#L37

        Or change it during runtime (notice the mounted hook):

        https://codepen.io/smolinari/pen/KKpmELv?editors=1010

        Scott

        A 1 Reply Last reply Reply Quote 2
        • A
          aestheticarepa @s.molinari last edited by

          @s-molinari said in Problem trying to change 'All' label in 'Records per page':

          https://github.com/quasarframework/quasar/blob/c66d946e8dd5496eb20db7c0a0a81e18ce262f74/ui/src/components/table/table-pagination.js#L68

          It’s an internal language phrase.

          You can change the English (US) value here permantly (there is also a GB version too that would need changing, plus all the translations, should you wish to do that):

          https://github.com/quasarframework/quasar/blob/c66d946e8dd5496eb20db7c0a0a81e18ce262f74/ui/lang/en-us.js#L37

          Or change it during runtime (notice the mounted hook):

          https://codepen.io/smolinari/pen/KKpmELv?editors=1010

          Scott

          Oh, I didn’t know the framework had language packs, no need to change the internal values, thanks for the help!

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