pratik227 / quasar-qgrid

QGrid is a Quasar App Extension. It allows you to filter data for each column, Drag and Drop Rows and also allows you to filter data using header filters.
https://next-quasar-qgrid.netlify.app/
MIT License
112 stars 90 forks source link

@row-click In q-grid #53

Closed Nova38 closed 2 years ago

Nova38 commented 2 years ago

Is it possible to access the event that happens when a row is clicked on like in the QTable's @row-click function? (https://quasar.dev/vue-components/table#api--qtable)

pratik227 commented 2 years ago

Hi @Nova38,

Added row-click event in new version. Please check

<q-grid :data="data" :columns="columns" :columns_filter="true" :draggable="true" :draggable_columns="true" :fullscreen="true"
            :csv_download="true" :global_search="true" @dragged_column="DraggedColumn($event)" @dragged_row="DraggedRow($event)"
            @row-click="onRowClick($event)">
    </q-grid>
  onRowClick(row) {
    console.log('clicked on', row)
  }