Comments (7)
Ideas?
from quasar-qgrid.
Not find any solution yet!!
from quasar-qgrid.
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.
<q-td>
<q-checkbox color="secondary" v-model="selected" :val="props.row"/>
</q-td>
from quasar-qgrid.
Thanks it works
from quasar-qgrid.
Closing this issue
from quasar-qgrid.
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)
- How to add a header filter for a field, which is an array HOT 1
- Dragged rows issue with reactive data HOT 7
- Filters doesn't work with api req HOT 2
- Option to disable draggable for specific rows HOT 10
- dragged_row not declared in emits or props HOT 2
- Prop for default value Records per page HOT 5
- QGrid Date Range Filter HOT 5
- How to display object in grid
- Throws run time error- filter is undefined on the page where qgrid is used. HOT 1
- Minor Improvements HOT 1
- Version 0.0.8 api.registerDescribeApi is not a function error HOT 2
- Selected array on multi selection not working HOT 22
- Customize column HOT 1
- Filter data HOT 2
- How to get filtered data when the column filtered HOT 3
- Returns an undefined column error when using a functional field in column definitions HOT 3
- cannot sort when pass prop pagination as an object HOT 2
- cannot filter when passing string from a parent component. HOT 10
- filter type select failed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quasar-qgrid.