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. noirforest
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 1
    • Groups 0

    noirforest

    @noirforest

    2
    Reputation
    5
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    noirforest Follow

    Best posts made by noirforest

    • RE: Icon in table body cell slot cannot be rendered in grid mode

      @s-molinari @metalsadman @rstoenescu thanks for explaining the reasons that I fully understand and agree. I am new to Quasar / Vue, will learn how to implement / extend a component to take full advantage of the power of the framework. BTW, awesome framework! Thanks for your great efforts!

      posted in Framework
      N
      noirforest

    Latest posts made by noirforest

    • RE: Icon in table body cell slot cannot be rendered in grid mode

      @s-molinari @metalsadman @rstoenescu thanks for explaining the reasons that I fully understand and agree. I am new to Quasar / Vue, will learn how to implement / extend a component to take full advantage of the power of the framework. BTW, awesome framework! Thanks for your great efforts!

      posted in Framework
      N
      noirforest
    • RE: Icon in table body cell slot cannot be rendered in grid mode

      @s-molinari said in Icon in table body cell slot cannot be rendered in grid mode:

      You have to use the item slot to better specify how the item should look, once it reduces to the grid mode.

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

      Scott

      Hi Scott,

      Thanks a lot, it helps. Wish it works out of box in grid mode though, then no more need to write lines of code for the item slot.

      posted in Framework
      N
      noirforest
    • RE: Icon in table body cell slot cannot be rendered in grid mode

      Sorry the screenshots in my post are not showing, you can click on its link to see, thanks

      posted in Framework
      N
      noirforest
    • Icon in table body cell slot cannot be rendered in grid mode

      I have an edit icon in the table body cell slot, the button shows correctly in the table:
      alt text

      However when grid is enabled (in mobile view), the icon is not rendered:
      alt text

      my code as below:

      <template>
        <q-page padding>
          <q-table
            title="Users"
            :data="users"
            :columns="columns"
            row-key="name"
            :grid="$q.screen.xs"
          >
            <q-td
              slot="body-cell-id"
              slot-scope="props"
              :props="props"
            >
              <q-btn
                round
                icon="edit"
                size="xs"
                color="primary"
                @click="update(props.row.id)"
              />
            </q-td>
          </q-table>
        </q-page>
      </template>
      
      <script>
      export default {
        data: () => ({
          users: [{ name: 'Jack', id: 1 }, { name: 'Jeff', id: 2 }],
          columns: [
            { name: 'name', label: 'Name', field: 'name' },
            { name: 'id', label: '', field: 'id' }
          ]
        }),
        methods: {
          update (id) {
            console.log('id is ' + id)
          }
        }
      }
      </script>
      
      posted in Framework
      N
      noirforest