Skip to content

Conversation

@FinalButterfly
Copy link
Contributor

No description provided.

- Simplified code
- Fixed indicator not sticking to the bottom
- Added code to remove all indicators when leaving table
q-grid-resize-selector="parent"
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>
Copy link
Collaborator

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){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use e.changes.rows

}

.q-grid-row-size-handler {
.q-grid-row-resize-indicator {
Copy link
Collaborator

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));

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove new line

@Component({
selector: 'q-grid-row',
template: '<ng-content></ng-content>',
template: `<ng-container></ng-container>`,
Copy link
Collaborator

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) => {
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants