-
Notifications
You must be signed in to change notification settings - Fork 27
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
Added dynamic row resize indicator #589
base: master
Are you sure you want to change the base?
Added dynamic row resize indicator #589
Conversation
- Simplified code - Fixed indicator not sticking to the bottom - Added code to remove all indicators when leaving table
q-grid-resize-path="rows" | ||
[q-grid-can-resize]="$view.row.resize.canExecute"> | ||
<mat-icon class="q-grid-icon q-grid-row-resize-indicator" style="display: none;">unfold_more</mat-icon> |
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.
please remove explicit style="display: none"
|
||
observe(model.highlightChanged) | ||
.subscribe(e => { | ||
if (e.changes.cell?.oldValue && e.changes.cell?.newValue && e.changes.cell.oldValue.rowIndex !== e.changes.cell.newValue.rowIndex){ |
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.
use e.changes.rows
packages/qgrid-styles/focus.scss
Outdated
@@ -7,6 +7,15 @@ td.q-grid-focused { | |||
} | |||
} | |||
|
|||
.q-grid-row-size-handler { | |||
.q-grid-row-resize-indicator { |
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.
q-grid-row-size
-indicator
- Fixed bug for row highlight events - Fixed bug in layer service whereby all layers would be destroyed on container clear
} | ||
|
||
const noopLayer = new Layer(() => this.layers.delete(name)); | ||
|
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.
remove new line
@@ -8,7 +8,7 @@ import { TemplateHostService } from '../template/template-host.service'; | |||
|
|||
@Component({ | |||
selector: 'q-grid-row', | |||
template: '<ng-content></ng-content>', | |||
template: `<ng-container></ng-container>`, |
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.
ng-content
this.oneRow = new Command({ | ||
source: 'highlight.oneRow', | ||
canExecute: () => !this.isRendering, | ||
execute: (row, state) => { |
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.
it should not be a state argument, this command just should highlight a row, not to unhighlight
- Formatting corrections
No description provided.