Skip to content

Comments

CardView: Implement Selection#29325

Merged
Alyar666 merged 8 commits intoDevExpress:grids/cardview/draftfrom
Alyar666:cardview_selection_25_1
Mar 28, 2025
Merged

CardView: Implement Selection#29325
Alyar666 merged 8 commits intoDevExpress:grids/cardview/draftfrom
Alyar666:cardview_selection_25_1

Conversation

@Alyar666
Copy link
Contributor

No description provided.

@Alyar666 Alyar666 requested a review from pomahtri March 18, 2025 01:16
@Alyar666 Alyar666 self-assigned this Mar 18, 2025
@Alyar666 Alyar666 force-pushed the cardview_selection_25_1 branch from fcd3c72 to bf6ccd1 Compare March 25, 2025 07:27
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */

import { isCommandKeyPressed } from '@js/common/core/events/utils/index';
import { off, on } from '@js/events';
Copy link
Contributor

Choose a reason for hiding this comment

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

please add '/index', otherwise qunit will fail


toolbar?: CardHeaderItem[];

width?: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like mistake after merge conflict solving. Do we need it?

@@ -0,0 +1,17 @@
export enum SelectionMode {
Copy link
Contributor

Choose a reason for hiding this comment

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

better not to use enums, only type unions
export type SelectionMode = 'single' | 'none' etc
And better to import existing type from .d.ts

const isSelectAll = this.isSelectAll();
const isOnePageSelectAll = this.isOnePageSelectAll();

this.toolbarController.addDefaultItem({
Copy link
Contributor

Choose a reason for hiding this comment

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

let's use approach from @Tucchhaa's PR to hide items

@Alyar666 Alyar666 force-pushed the cardview_selection_25_1 branch from 93ece83 to c933a41 Compare March 28, 2025 01:56
@Alyar666 Alyar666 marked this pull request as ready for review March 28, 2025 08:38
@Alyar666 Alyar666 requested review from a team as code owners March 28, 2025 08:38
@Alyar666 Alyar666 merged commit 5007d76 into DevExpress:grids/cardview/draft Mar 28, 2025
116 of 261 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants