- Home
- Forum
- ASP.NET Core - EJ 2
- add cards dynamically
add cards dynamically
Hi,
Is it possible to programmatically add cards with functionality similar to this image?
Or what would be the ideal tool for this functionality?
Thanks
Hi Fernando,
We’ve prepared a sample that includes the icon and its related content within the card. You can refer to the code snippet and sample provided below.
<div class="control-section card-control-section vertical_card_layout"> <div class="e-card-actions center">
<div class="e-card-content">
<div class="e-card-content">
<div class="e-card-content"> |
Regards,
Priyanka K
Attachment: CardCore_158824ef.zip
Hi Priyanka,
Thank you for your prompt response. While the solution provided was helpful, what I was actually seeking was the ability to add cards similar to the function demonstrated. These cards could be without any images, just some labels on each card. However, the key requirement is to have a button that, upon clicking, would add cards to the screen. Additionally, there should be an option to delete cards, similar to the example provided.
I appreciate your attention to this matter and look forward to any further assistance you can provide in achieving this functionality.
Best regards,
Fernando
Hi Fernando,
The card is a CSS-level component that you can customize to suit your specific needs using classes like "e-card" or "e-card-header" and so on. For more detailed information, please refer to the documentation. If you're looking to dynamically add or remove cards, we've prepared a sample that demonstrates how to do this on button click events. You can find the code snippet and sample for your reference below.
<button id="addCardButton">Add Card</button> <script> // Add the button and content to the new card // Append the new card to the container |
Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/card/getting-started
Regards,
Priyanka K
Attachment: AddCard_876827a8.zip
- 3 Replies
- 2 Participants
-
FE Fernando
- Apr 25, 2024 07:53 PM UTC
- May 2, 2024 11:43 AM UTC