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

Added dynamic row resize indicator #589

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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

@@ -7,6 +7,15 @@ td.q-grid-focused {
}
}

.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

@@ -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>`,
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