-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add row basic functionality #8093
Conversation
projects/igniteui-angular/src/lib/grids/grid/grid.component.html
Outdated
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/grids/grid/grid.component.html
Outdated
Show resolved
Hide resolved
recordRef: row, | ||
addRow: true | ||
}; | ||
collection.splice(parentRecordIndex + 1, 0, rec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this pipe runs after all other pipes, there may be cases when the row should not be shown below the parent record index. For example, if you have a grid with master-detail views, if the new row is displayed under the parent (master row) it would visually break the hierarchy since the new row will appear above the details view:
In those cases it may be better to show the add row above it.
Also the add row should not allow expand/collapse operations
projects/igniteui-angular/src/lib/grids/grid/grid.component.html
Outdated
Show resolved
Hide resolved
return; | ||
} | ||
if (commit) { | ||
this.gridAPI.submit_add_value(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to generate an update transaction. There's no need to generate an update transaction before adding the row.
%igx-grid__addrow-snackbar { | ||
position: absolute; | ||
z-index: 5; | ||
left: 35%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property should be the interpolated version of the $left
variable for RTL compatibility purposes.
left: 35%; | |
#{$left}: 35%; |
Also, are you sure you want to use percentages as the unit to set the position of the snackbar? If yes, how did you come up with those numbers?
Related to #5946 and IgniteUI/trial-watermark#50
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes (migrations guidelines)