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
    1. Home
    2. Castris
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 1
    • Groups 0

    Best posts made by Castris

    • RE: q-table with reactive i18n translations for columns name

      Thanks… Work fine after create a computed propìerty for columns

      columnsI18n () {
            let columns = [
              {
                name: 'domain',
                required: true,
                label: this.$t('domains.label'),
                align: 'left',
                field: row => row.domain,
                format: val => `${val}`,
                sortable: true
              },
              {
                name: 'active',
                align: 'center',
                label: this.$t('domains.active'),
                field: row => row.active,
                format: val => String(!!val),
                sortable: true
              },
              {
                name: 'show',
                align: 'center',
                sortable: false
              },
              {
                name: 'edit',
                align: 'center',
                sortable: false
              },
              {
                name: 'archive',
                align: 'center',
                sortable: false
              },
              {
                name: 'delete',
                align: 'center',
                sortable: false
              }
            ]
            return columns
          }
      
      posted in Framework
      Castris
      Castris