Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - event binding and style/class binding capability for igx-grid-row #1317

Closed
tkiryu opened this issue May 15, 2018 · 1 comment

Comments

@tkiryu
Copy link

tkiryu commented May 15, 2018

Description

Similar to #1079 , I'd like to conditionally change igx-grid-row style( such as background color) according to its data or something. In addition, I'd like to do event binding to igx-grid-row.

Expect

For example, I'd like igx-grid-row to become like mat-row. Here is a sample.
https://stackblitz.com/edit/angular-material-datatable

    <mat-row *matRowDef="let row; columns: displayedColumns;"
             (mousedown)="onMousedown($event)"
             (mouseover)="onMouseover($event)"
             (click)="onClick($event)"
             [class.foo]="true"
             [style.backgroundColor]="'red'">
    </mat-row>
  • igx-grid-row can be defined as a child of igx-grid.
  • Event binding(click, mousedown, mouseover and so on...) can be available to igx-grid-row.
  • Style and Class binding can be available to igx-grid-row.

This is just my idea. If you have any better ideas, that'll be great!

I'd appreciate your consideration.

@kdinev
Copy link
Member

kdinev commented Apr 27, 2020

Since we don't have a row component, we don't have a way to expose this on a row level currently.

@kdinev kdinev closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants