-
Notifications
You must be signed in to change notification settings - Fork 672
CardView: Card template demo #30029
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
Merged
Raushen
merged 52 commits into
DevExpress:25_1
from
Raushen:CardView_Card_template_demo_25_1
Jun 10, 2025
Merged
CardView: Card template demo #30029
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
d003914
Add data source
662b222
Fix DataSource
4171b9f
Add images
6e5617f
Fix data
5b70134
jQuery Demo
791c21d
Fix data source and style
89509e7
Fix data source
35d900a
Fix data source
7cd1c32
Add Angular demo
6343199
Add React demo
96ef371
Add React.js demo
08bdc64
jQuery demo refactoring
0cebefa
Merge branch '25_1' of github.com:DevExpress/DevExtreme into CardView…
53ec2c5
Add Vue demo
6e61884
Extract VehicleCard
96f754a
React refactoring
4349d36
React.js refactoring
11ed1c4
Angular refactoring
ea6d875
Fix linter
81b4333
Add fluent etalon
30d4f05
Add etalons
8a942f1
LF and EOF fix
994ac25
Delete etalons
63fd242
Fake commit
c9be3e7
Merge branch '25_1' of github.com:DevExpress/DevExtreme into CardView…
c1c02ed
Revert "Fake commit"
7d8ca76
Fix comments
b3e472a
Use groupInterval
67d0f47
Horsepower fix
584d641
Merge branch '25_1' of github.com:DevExpress/DevExtreme into CardView…
a77956d
Using nested properties
259d7be
Fix css
8223730
Prettier
29d6673
Refactoring
3bcd657
Refactoring
ffdb827
Merge branch '25_1' of github.com:DevExpress/DevExtreme into CardView…
3d81576
Angular: Get formatted Price field
6412835
jQuery: Get formatted Price field
5aceecf
React: Get formatted Price field
cd1878a
Vue: Get formatted Price field
9214651
Fix Vue demo
9158ab7
Fix prettier Angular
96d8dd8
Update etalons
ee4be91
Moving getFormattedPrice outside the App
381f5c1
Merge branch '25_1' of github.com:DevExpress/DevExtreme into CardView…
72f7406
Formatting
8a77465
fix(CardView demos): resolve formatting issues
wdevfx c926010
Merge branch '25_1' of github.com:DevExpress/DevExtreme into CardView…
3b21ade
Merge branch 'CardView_Card_template_demo_25_1' of github.com:Raushen…
773b3ed
Fix type
341ce68
Template refactoring
8e61b43
Refactoring
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
58 changes: 53 additions & 5 deletions
58
apps/demos/Demos/CardView/CardTemplate/Angular/app/app.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,54 @@ | ||
| <dx-card-view id="cardView" [dataSource]="customers" keyExpr="ID"> | ||
| <dxi-card-view-column | ||
| *ngFor="let column of columns" | ||
| [dataField]="column" | ||
| ></dxi-card-view-column> | ||
| <dx-card-view | ||
| [dataSource]="vehicles" | ||
| cardsPerRow="auto" | ||
| [cardMinWidth]="260" | ||
| cardTemplate="vehicleCardTemplate" | ||
| > | ||
| <dxo-card-view-header-filter [visible]="true"></dxo-card-view-header-filter> | ||
| <dxo-card-view-search-panel [visible]="true"></dxo-card-view-search-panel> | ||
| <dxo-card-view-paging [pageSize]="12"></dxo-card-view-paging> | ||
|
|
||
| <dxi-card-view-column dataField="TrademarkName"></dxi-card-view-column> | ||
| <dxi-card-view-column dataField="Name"></dxi-card-view-column> | ||
| <dxi-card-view-column dataField="Price" format="currency"> | ||
| <dxo-card-view-column-header-filter | ||
| [groupInterval]="20000" | ||
| ></dxo-card-view-column-header-filter> | ||
| </dxi-card-view-column> | ||
| <dxi-card-view-column dataField="CategoryName"></dxi-card-view-column> | ||
| <dxi-card-view-column dataField="Modification"></dxi-card-view-column> | ||
| <dxi-card-view-column dataField="BodyStyleName"></dxi-card-view-column> | ||
| <dxi-card-view-column dataField="Horsepower"></dxi-card-view-column> | ||
|
|
||
| <div *dxTemplate="let model of 'vehicleCardTemplate'"> | ||
| <ng-container *ngIf="model.card?.data as data"> | ||
| <vehicle-card | ||
| [id]="data.ID" | ||
| [model]="data.TrademarkName + ' ' + data.Name" | ||
| [price]="getFormattedPrice(model.card)" | ||
| [categoryName]="data.CategoryName" | ||
| [modification]="data.Modification" | ||
| [bodyStyleName]="data.BodyStyleName" | ||
| [horsepower]="data.Horsepower" | ||
| (showInfo)="showInfo(data)" | ||
| ></vehicle-card> | ||
| </ng-container> | ||
| </div> | ||
| </dx-card-view> | ||
|
|
||
| <dx-popup | ||
| [width]="350" | ||
| [height]="240" | ||
| [(visible)]="popupVisible" | ||
| [dragEnabled]="false" | ||
| [hideOnOutsideClick]="true" | ||
| title="Image Info" | ||
| > | ||
| <dxo-position at="center" my="center" collision="fit"></dxo-position> | ||
| <div *dxTemplate="let _ of 'content'"> | ||
| <license-info | ||
| *ngIf="currentVehicle" | ||
| [vehicle]="currentVehicle" | ||
| ></license-info> | ||
| </div> | ||
| </dx-popup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.