Giter Club home page Giter Club logo

Comments (7)

novecento avatar novecento commented on July 26, 2024

Ideas?

from quasar-qgrid.

pratik227 avatar pratik227 commented on July 26, 2024

Not find any solution yet!!

from quasar-qgrid.

pratik227 avatar pratik227 commented on July 26, 2024

Hi @novecento @murataras I found one workaround for this let me know if it works.

<q-grid :data="data" :columns="columns" :columns_filter="true" :draggable="true" selection="multiple"
            :csv_download="true" file_name="sample" :groupby_filter="true"
            :selected="selected" row_key="name"
            @selected-val="GetSelected($event)">
      <template v-slot:body="props">
        <q-tr :props="props">
          <q-td>
            <q-checkbox color="secondary" v-model="selected" :val="props.row"/>
          </q-td>
          <q-td key="name">
            {{ props.row.name }}
          </q-td>
          <q-td key="calories">
            <q-badge color="green">
              {{ props.row.calories }}
            </q-badge>
          </q-td>
          <q-td key="fat">
            <q-badge color="purple">
              {{ props.row.fat }}
            </q-badge>
          </q-td>
          <q-td key="carbs">
            <q-badge color="orange">
              {{ props.row.carbs }}
            </q-badge>
          </q-td>
          <q-td key="protein">
            <q-badge color="primary">
              {{ props.row.protein }}
            </q-badge>
          </q-td>
          <q-td key="sodium">
            <q-badge color="teal">
              {{ props.row.sodium }}
            </q-badge>
          </q-td>
          <q-td key="calcium">
            <q-badge color="accent">
              {{ props.row.calcium }}
            </q-badge>
          </q-td>
          <q-td key="iron">
            <q-badge color="amber">
              {{ props.row.iron }}
            </q-badge>
          </q-td>
        </q-tr>
      </template>
    </q-grid>

from quasar-qgrid.

pratik227 avatar pratik227 commented on July 26, 2024
<q-td>
  <q-checkbox color="secondary" v-model="selected" :val="props.row"/>
</q-td>

from quasar-qgrid.

murataras avatar murataras commented on July 26, 2024

Thanks it works

from quasar-qgrid.

pratik227 avatar pratik227 commented on July 26, 2024

Closing this issue

from quasar-qgrid.

murataras avatar murataras commented on July 26, 2024

Hi,
it is a reference variable, changes are not trigger, so it is necessary to add it to the getselected method.

const GetSelected = (s) => { if(s.length == 0){ selectedRows.value.splice(0); //Clear array } else{ Object.assign(selectedRows.value, s); } }

from quasar-qgrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.